nvector_nrnthread.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include "shared/nvector_serial.h"
#include "nvector_nrnthread.h"
#include "nvector.h"
#include "sundialstypes.h"
#include "shared/sundialsmath.h"
#include "shared/sundialstypes.h"
#include "section.h"
#include "nrnmutdec.h"
Include dependency graph for nvector_nrnthread.c:
This graph shows which files directly or indirectly include this file:

Defines

#define USELONGDOUBLE   0
#define ZERO   RCONST(0.0)
#define HALF   RCONST(0.5)
#define ONE   RCONST(1.0)
#define ONEPT5   RCONST(1.5)
#define mydebug(a)
#define mydebug2(a, b)
#define ldrealtype   realtype
#define xpass   x_ = x;
#define ypass   y_ = y;
#define zpass   z_ = z;
#define wpass   w_ = w;
#define idpass   id_ = id;
#define apass   a_ = a;
#define bpass   b_ = b;
#define cpass   c_ = c;
#define xarg(i)   NV_SUBVEC_NT(x_, i)
#define yarg(i)   NV_SUBVEC_NT(y_, i)
#define zarg(i)   NV_SUBVEC_NT(z_, i)
#define warg(i)   NV_SUBVEC_NT(w_, i)
#define idarg(i)   NV_SUBVEC_NT(id_, i)
#define aarg   a_
#define barg   b_
#define carg   c_
#define lock   MUTLOCK
#define unlock   MUTUNLOCK
#define lockadd(arg)   lock; retval += arg; unlock;
#define locklongdadd(arg)   lockadd(arg)
#define lockmax(arg)   lock; if (retval < arg) { retval = arg; }; unlock;
#define lockmin(arg)   lock; if (retval > arg) { retval = arg; }; unlock;
#define lockfalse   lock; bretval = FALSE; unlock;

Functions

N_Vector N_VNewEmpty_NrnThread (long int length, int nthread, long int *sizes)
N_Vector N_VNew_NrnThread (long int length, int nthread, long int *sizes)
N_Vector N_VCloneEmpty_NrnThread (N_Vector w)
N_Vector N_VMake_NrnThread (long int length, realtype *v_data)
N_Vector * N_VNewVectorArray_NrnThread (int count, long int length, int nthread, long int *sizes)
N_Vector * N_VNewVectorArrayEmpty_NrnThread (int count, long int length, int nthread, long int *sizes)
void N_VDestroyVectorArray_NrnThread (N_Vector *vs, int count)
void N_VPrint_NrnThread (N_Vector x)
N_Vector N_VClone_NrnThread (N_Vector w)
void N_VDestroy_NrnThread (N_Vector v)
void N_VSpace_NrnThread (N_Vector v, long int *lrw, long int *liw)
realtype * N_VGetArrayPointer_NrnThread (N_Vector v)
void N_VSetArrayPointer_NrnThread (realtype *v_data, N_Vector v)
void N_VLinearSum_NrnThread (realtype a, N_Vector x, realtype b, N_Vector y, N_Vector z)
void N_VConst_NrnThread (realtype c, N_Vector z)
void N_VProd_NrnThread (N_Vector x, N_Vector y, N_Vector z)
void N_VDiv_NrnThread (N_Vector x, N_Vector y, N_Vector z)
void N_VScale_NrnThread (realtype c, N_Vector x, N_Vector z)
void N_VAbs_NrnThread (N_Vector x, N_Vector z)
void N_VInv_NrnThread (N_Vector x, N_Vector z)
void N_VAddConst_NrnThread (N_Vector x, realtype b, N_Vector z)
realtype N_VDotProd_NrnThread (N_Vector x, N_Vector y)
realtype N_VMaxNorm_NrnThread (N_Vector x)
realtype N_VWrmsNorm_NrnThread (N_Vector x, N_Vector w)
realtype N_VWrmsNormMask_NrnThread (N_Vector x, N_Vector w, N_Vector id)
realtype N_VMin_NrnThread (N_Vector x)
realtype N_VWL2Norm_NrnThread (N_Vector x, N_Vector w)
realtype N_VL1Norm_NrnThread (N_Vector x)
void N_VOneMask_NrnThread (N_Vector x)
void N_VCompare_NrnThread (realtype c, N_Vector x, N_Vector z)
booleantype N_VInvTest_NrnThread (N_Vector x, N_Vector z)
booleantype N_VConstrMask_NrnThread (N_Vector y, N_Vector x, N_Vector z)
realtype N_VMinQuotient_NrnThread (N_Vector x, N_Vector y)

Define Documentation

#define aarg   a_
#define apass   a_ = a;
#define barg   b_
#define bpass   b_ = b;
#define carg   c_
#define cpass   c_ = c;
#define HALF   RCONST(0.5)
#define idarg ( i   )     NV_SUBVEC_NT(id_, i)
#define idpass   id_ = id;
#define ldrealtype   realtype
#define lock   MUTLOCK
#define lockadd ( arg   )     lock; retval += arg; unlock;
#define lockfalse   lock; bretval = FALSE; unlock;
#define locklongdadd ( arg   )     lockadd(arg)
#define lockmax ( arg   )     lock; if (retval < arg) { retval = arg; }; unlock;
#define lockmin ( arg   )     lock; if (retval > arg) { retval = arg; }; unlock;
#define mydebug (  ) 
#define mydebug2 ( a,
 ) 
#define ONE   RCONST(1.0)
#define ONEPT5   RCONST(1.5)
#define unlock   MUTUNLOCK
#define USELONGDOUBLE   0
#define warg ( i   )     NV_SUBVEC_NT(w_, i)
#define wpass   w_ = w;
#define xarg ( i   )     NV_SUBVEC_NT(x_, i)
#define xpass   x_ = x;
#define yarg ( i   )     NV_SUBVEC_NT(y_, i)
#define ypass   y_ = y;
#define zarg ( i   )     NV_SUBVEC_NT(z_, i)
#define ZERO   RCONST(0.0)
#define zpass   z_ = z;

Function Documentation

void N_VAbs_NrnThread ( N_Vector  x,
N_Vector  z 
)

References mydebug, nrn_multithread_job(), xpass, and zpass.

Referenced by N_VNewEmpty_NrnThread().

Here is the call graph for this function:

void N_VAddConst_NrnThread ( N_Vector  x,
realtype  b,
N_Vector  z 
)

References bpass, mydebug, nrn_multithread_job(), xpass, and zpass.

Referenced by N_VNewEmpty_NrnThread().

Here is the call graph for this function:

N_Vector N_VClone_NrnThread ( N_Vector  w  ) 
N_Vector N_VCloneEmpty_NrnThread ( N_Vector  w  ) 
void N_VCompare_NrnThread ( realtype  c,
N_Vector  x,
N_Vector  z 
)

References cpass, mydebug, nrn_multithread_job(), xpass, and zpass.

Referenced by N_VNewEmpty_NrnThread().

Here is the call graph for this function:

void N_VConst_NrnThread ( realtype  c,
N_Vector  z 
)

References cpass, mydebug, nrn_multithread_job(), and zpass.

Referenced by N_VNewEmpty_NrnThread().

Here is the call graph for this function:

booleantype N_VConstrMask_NrnThread ( N_Vector  y,
N_Vector  x,
N_Vector  z 
)

References mydebug2, nrn_multithread_job(), xpass, ypass, and zpass.

Referenced by N_VNewEmpty_NrnThread().

Here is the call graph for this function:

void N_VDestroy_NrnThread ( N_Vector  v  ) 
void N_VDestroyVectorArray_NrnThread ( N_Vector *  vs,
int  count 
)

References N_VDestroy_NrnThread().

Referenced by N_VNewVectorArray_NrnThread(), and N_VNewVectorArrayEmpty_NrnThread().

Here is the call graph for this function:

void N_VDiv_NrnThread ( N_Vector  x,
N_Vector  y,
N_Vector  z 
)

References mydebug, nrn_multithread_job(), xpass, ypass, and zpass.

Referenced by N_VNewEmpty_NrnThread().

Here is the call graph for this function:

realtype N_VDotProd_NrnThread ( N_Vector  x,
N_Vector  y 
)

References mydebug2, nrn_multithread_job(), xpass, ypass, and ZERO.

Referenced by N_VNewEmpty_NrnThread().

Here is the call graph for this function:

realtype* N_VGetArrayPointer_NrnThread ( N_Vector  v  ) 

References NV_DATA_NT.

Referenced by N_VNewEmpty_NrnThread().

void N_VInv_NrnThread ( N_Vector  x,
N_Vector  z 
)

References mydebug, nrn_multithread_job(), xpass, and zpass.

Referenced by N_VNewEmpty_NrnThread().

Here is the call graph for this function:

booleantype N_VInvTest_NrnThread ( N_Vector  x,
N_Vector  z 
)

References mydebug2, nrn_multithread_job(), xpass, and zpass.

Referenced by N_VNewEmpty_NrnThread().

Here is the call graph for this function:

realtype N_VL1Norm_NrnThread ( N_Vector  x  ) 

References mydebug2, nrn_multithread_job(), xpass, and ZERO.

Referenced by N_VNewEmpty_NrnThread().

Here is the call graph for this function:

void N_VLinearSum_NrnThread ( realtype  a,
N_Vector  x,
realtype  b,
N_Vector  y,
N_Vector  z 
)

References apass, bpass, mydebug, nrn_multithread_job(), xpass, ypass, and zpass.

Referenced by N_VNewEmpty_NrnThread().

Here is the call graph for this function:

N_Vector N_VMake_NrnThread ( long int  length,
realtype *  v_data 
)

References assert, N_VNewEmpty_NrnThread(), NV_DATA_NT, NV_OWN_DATA_NT, and v.

Here is the call graph for this function:

realtype N_VMaxNorm_NrnThread ( N_Vector  x  ) 

References mydebug2, nrn_multithread_job(), xpass, and ZERO.

Referenced by N_VNewEmpty_NrnThread().

Here is the call graph for this function:

realtype N_VMin_NrnThread ( N_Vector  x  ) 

References mydebug2, nrn_multithread_job(), and xpass.

Referenced by N_VNewEmpty_NrnThread().

Here is the call graph for this function:

realtype N_VMinQuotient_NrnThread ( N_Vector  x,
N_Vector  y 
)

References mydebug2, nrn_multithread_job(), xpass, and ypass.

Referenced by N_VNewEmpty_NrnThread().

Here is the call graph for this function:

N_Vector N_VNew_NrnThread ( long int  length,
int  nthread,
long int sizes 
)

References data, i, N_VDestroy_NrnThread(), N_VNewEmpty_NrnThread(), NV_OWN_DATA_NT, NV_SUBVEC_NT, and v.

Referenced by N_VNewVectorArray_NrnThread().

Here is the call graph for this function:

N_Vector N_VNewEmpty_NrnThread ( long int  length,
int  nthread,
long int sizes 
)
N_Vector* N_VNewVectorArray_NrnThread ( int  count,
long int  length,
int  nthread,
long int sizes 
)

References N_VDestroyVectorArray_NrnThread(), and N_VNew_NrnThread().

Here is the call graph for this function:

N_Vector* N_VNewVectorArrayEmpty_NrnThread ( int  count,
long int  length,
int  nthread,
long int sizes 
)

References N_VDestroyVectorArray_NrnThread(), and N_VNewEmpty_NrnThread().

Here is the call graph for this function:

void N_VOneMask_NrnThread ( N_Vector  x  ) 

References nrn_multithread_job(), and xpass.

Here is the call graph for this function:

void N_VPrint_NrnThread ( N_Vector  x  ) 

References i, NV_NT_NT, and NV_SUBVEC_NT.

void N_VProd_NrnThread ( N_Vector  x,
N_Vector  y,
N_Vector  z 
)

References mydebug, nrn_multithread_job(), xpass, ypass, and zpass.

Referenced by N_VNewEmpty_NrnThread().

Here is the call graph for this function:

void N_VScale_NrnThread ( realtype  c,
N_Vector  x,
N_Vector  z 
)

References cpass, mydebug, nrn_multithread_job(), xpass, and zpass.

Referenced by N_VNewEmpty_NrnThread().

Here is the call graph for this function:

void N_VSetArrayPointer_NrnThread ( realtype *  v_data,
N_Vector  v 
)

References assert, NV_DATA_NT, and NV_LENGTH_NT.

Referenced by N_VNewEmpty_NrnThread().

void N_VSpace_NrnThread ( N_Vector  v,
long int lrw,
long int liw 
)

References NV_LENGTH_NT.

Referenced by N_VNewEmpty_NrnThread().

realtype N_VWL2Norm_NrnThread ( N_Vector  x,
N_Vector  w 
)

References mydebug2, nrn_multithread_job(), NV_LENGTH_NT, wpass, xpass, and ZERO.

Referenced by N_VNewEmpty_NrnThread().

Here is the call graph for this function:

realtype N_VWrmsNorm_NrnThread ( N_Vector  x,
N_Vector  w 
)

References mydebug2, nrn_multithread_job(), NV_LENGTH_NT, wpass, xpass, and ZERO.

Referenced by N_VNewEmpty_NrnThread().

Here is the call graph for this function:

realtype N_VWrmsNormMask_NrnThread ( N_Vector  x,
N_Vector  w,
N_Vector  id 
)

References idpass, mydebug2, nrn_multithread_job(), NV_LENGTH_NT, wpass, xpass, and ZERO.

Referenced by N_VNewEmpty_NrnThread().

Here is the call graph for this function:

Generated on Mon Jun 13 08:10:28 2011 for NEURON by  doxygen 1.6.3