00001 00025 #ifndef LOCALVEC_H_ 00026 #define LOCALVEC_H_ 00027 00028 #include "AuxDefs.h" 00029 #include "StandardAVI.h" 00030 00031 #include <vector> 00032 00033 struct LocalVec { 00034 typedef StandardAVI::BCImposedType BCImposedType; 00035 00036 00038 MatDouble q; 00039 MatDouble v; 00040 MatDouble vb; 00041 MatDouble ti; 00042 00044 MatDouble qnew; 00045 MatDouble vnew; 00046 MatDouble vbnew; 00047 MatDouble vbinit; 00048 MatDouble tnew; 00049 00051 MatDouble forcefield; 00052 MatDouble funcval; 00053 MatDouble deltaV; 00054 00055 00061 LocalVec (size_t nrows=0, size_t ncols=0) { 00062 q = MatDouble (nrows, VecDouble (ncols, 0.0)); 00063 00064 v = MatDouble (q); 00065 vb = MatDouble (q); 00066 ti = MatDouble (q); 00067 qnew = MatDouble (q); 00068 vnew = MatDouble (q); 00069 vbnew = MatDouble (q); 00070 vbinit = MatDouble (q); 00071 tnew = MatDouble (q); 00072 00073 00074 forcefield = MatDouble (q); 00075 funcval = MatDouble (q); 00076 deltaV = MatDouble (q); 00077 00078 } 00079 00080 00081 00082 }; 00083 #endif /* LOCALVEC_H_ */