source:
issm/oecreview/Archive/19101-20495/ISSM-19197-19198.diff@
20498
Last change on this file since 20498 was 20498, checked in by , 9 years ago | |
---|---|
File size: 56.8 KB |
-
../trunk-jpl/src/c/bamg/BamgQuadtree.h
34 34 int Id() {_error_("not implemented yet"); }; 35 35 int ObjectEnum() {_error_("not implemented yet"); }; 36 36 Object *copy() {_error_("not implemented yet"); }; 37 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 37 38 }; 38 39 39 40 /*BamgQuadtree private Fields*/ -
../trunk-jpl/src/c/shared/Enum/EnumDefinitions.h
7 7 #define _ENUM_DEFINITIONS_ 8 8 9 9 enum definitions{ 10 /*General: {{{*/ 11 FemModelEnum, 12 /*}}}*/ 10 13 /*Model fields {{{*/ 11 14 AutodiffIsautodiffEnum, 12 15 AutodiffNumDependentsEnum, … … 454 457 FSpressureEnum, 455 458 /*}}}*/ 456 459 /*Datasets {{{*/ 460 DataSetEnum, 457 461 ConstraintsEnum, 458 462 LoadsEnum, 459 463 MaterialsEnum, -
../trunk-jpl/src/c/shared/Enum/EnumToStringx.cpp
16 16 17 17 switch(en){ 18 18 19 case FemModelEnum : return "FemModel"; 19 20 case AutodiffIsautodiffEnum : return "AutodiffIsautodiff"; 20 21 case AutodiffNumDependentsEnum : return "AutodiffNumDependents"; 21 22 case AutodiffNumDependentObjectsEnum : return "AutodiffNumDependentObjects"; … … 453 454 case FSApproximationEnum : return "FSApproximation"; 454 455 case FSvelocityEnum : return "FSvelocity"; 455 456 case FSpressureEnum : return "FSpressure"; 457 case DataSetEnum : return "DataSet"; 456 458 case ConstraintsEnum : return "Constraints"; 457 459 case LoadsEnum : return "Loads"; 458 460 case MaterialsEnum : return "Materials"; -
../trunk-jpl/src/c/shared/Enum/StringToEnumx.cpp
16 16 int stage=1; 17 17 18 18 if(stage==1){ 19 if (strcmp(name,"AutodiffIsautodiff")==0) return AutodiffIsautodiffEnum; 19 if (strcmp(name,"FemModel")==0) return FemModelEnum; 20 else if (strcmp(name,"AutodiffIsautodiff")==0) return AutodiffIsautodiffEnum; 20 21 else if (strcmp(name,"AutodiffNumDependents")==0) return AutodiffNumDependentsEnum; 21 22 else if (strcmp(name,"AutodiffNumDependentObjects")==0) return AutodiffNumDependentObjectsEnum; 22 23 else if (strcmp(name,"AutodiffDependentObjectNames")==0) return AutodiffDependentObjectNamesEnum; … … 135 136 else if (strcmp(name,"HydrologydcEplCompressibility")==0) return HydrologydcEplCompressibilityEnum; 136 137 else if (strcmp(name,"HydrologydcEplPorosity")==0) return HydrologydcEplPorosityEnum; 137 138 else if (strcmp(name,"HydrologydcEplInitialThickness")==0) return HydrologydcEplInitialThicknessEnum; 138 else if (strcmp(name,"HydrologydcEplColapseThickness")==0) return HydrologydcEplColapseThicknessEnum;139 139 else stage=2; 140 140 } 141 141 if(stage==2){ 142 if (strcmp(name,"HydrologydcEplMaxThickness")==0) return HydrologydcEplMaxThicknessEnum; 142 if (strcmp(name,"HydrologydcEplColapseThickness")==0) return HydrologydcEplColapseThicknessEnum; 143 else if (strcmp(name,"HydrologydcEplMaxThickness")==0) return HydrologydcEplMaxThicknessEnum; 143 144 else if (strcmp(name,"HydrologydcEplThickness")==0) return HydrologydcEplThicknessEnum; 144 145 else if (strcmp(name,"HydrologydcEplThicknessOld")==0) return HydrologydcEplThicknessOldEnum; 145 146 else if (strcmp(name,"HydrologydcEplThickComp")==0) return HydrologydcEplThickCompEnum; … … 258 259 else if (strcmp(name,"MeshElements")==0) return MeshElementsEnum; 259 260 else if (strcmp(name,"MeshLowerelements")==0) return MeshLowerelementsEnum; 260 261 else if (strcmp(name,"MeshNumberofelements2d")==0) return MeshNumberofelements2dEnum; 261 else if (strcmp(name,"MeshNumberofelements")==0) return MeshNumberofelementsEnum;262 262 else stage=3; 263 263 } 264 264 if(stage==3){ 265 if (strcmp(name,"MeshNumberoflayers")==0) return MeshNumberoflayersEnum; 265 if (strcmp(name,"MeshNumberofelements")==0) return MeshNumberofelementsEnum; 266 else if (strcmp(name,"MeshNumberoflayers")==0) return MeshNumberoflayersEnum; 266 267 else if (strcmp(name,"MeshNumberofvertices2d")==0) return MeshNumberofvertices2dEnum; 267 268 else if (strcmp(name,"MeshNumberofvertices")==0) return MeshNumberofverticesEnum; 268 269 else if (strcmp(name,"MeshUpperelements")==0) return MeshUpperelementsEnum; … … 381 382 else if (strcmp(name,"SurfaceforcingsSmbref")==0) return SurfaceforcingsSmbrefEnum; 382 383 else if (strcmp(name,"SurfaceforcingsBPos")==0) return SurfaceforcingsBPosEnum; 383 384 else if (strcmp(name,"SurfaceforcingsBNeg")==0) return SurfaceforcingsBNegEnum; 384 else if (strcmp(name,"SMBhenning")==0) return SMBhenningEnum;385 385 else stage=4; 386 386 } 387 387 if(stage==4){ 388 if (strcmp(name,"SMBcomponents")==0) return SMBcomponentsEnum; 388 if (strcmp(name,"SMBhenning")==0) return SMBhenningEnum; 389 else if (strcmp(name,"SMBcomponents")==0) return SMBcomponentsEnum; 389 390 else if (strcmp(name,"SurfaceforcingsAccumulation")==0) return SurfaceforcingsAccumulationEnum; 390 391 else if (strcmp(name,"SurfaceforcingsEvaporation")==0) return SurfaceforcingsEvaporationEnum; 391 392 else if (strcmp(name,"SurfaceforcingsRunoff")==0) return SurfaceforcingsRunoffEnum; … … 462 463 else if (strcmp(name,"FSApproximation")==0) return FSApproximationEnum; 463 464 else if (strcmp(name,"FSvelocity")==0) return FSvelocityEnum; 464 465 else if (strcmp(name,"FSpressure")==0) return FSpressureEnum; 466 else if (strcmp(name,"DataSet")==0) return DataSetEnum; 465 467 else if (strcmp(name,"Constraints")==0) return ConstraintsEnum; 466 468 else if (strcmp(name,"Loads")==0) return LoadsEnum; 467 469 else if (strcmp(name,"Materials")==0) return MaterialsEnum; … … 503 505 else if (strcmp(name,"Numericalflux")==0) return NumericalfluxEnum; 504 506 else if (strcmp(name,"NumericalfluxType")==0) return NumericalfluxTypeEnum; 505 507 else if (strcmp(name,"Param")==0) return ParamEnum; 506 else if (strcmp(name,"Pengrid")==0) return PengridEnum;507 else if (strcmp(name,"Penpair")==0) return PenpairEnum;508 508 else stage=5; 509 509 } 510 510 if(stage==5){ 511 if (strcmp(name,"Profiler")==0) return ProfilerEnum; 511 if (strcmp(name,"Pengrid")==0) return PengridEnum; 512 else if (strcmp(name,"Penpair")==0) return PenpairEnum; 513 else if (strcmp(name,"Profiler")==0) return ProfilerEnum; 512 514 else if (strcmp(name,"MatrixParam")==0) return MatrixParamEnum; 513 515 else if (strcmp(name,"Masscon")==0) return MassconEnum; 514 516 else if (strcmp(name,"MassconName")==0) return MassconNameEnum; … … 626 628 else if (strcmp(name,"StressTensoryz")==0) return StressTensoryzEnum; 627 629 else if (strcmp(name,"StressTensorzz")==0) return StressTensorzzEnum; 628 630 else if (strcmp(name,"StressMaxPrincipal")==0) return StressMaxPrincipalEnum; 629 else if (strcmp(name,"DeviatoricStress")==0) return DeviatoricStressEnum;630 else if (strcmp(name,"DeviatoricStressxx")==0) return DeviatoricStressxxEnum;631 631 else stage=6; 632 632 } 633 633 if(stage==6){ 634 if (strcmp(name,"DeviatoricStressxy")==0) return DeviatoricStressxyEnum; 634 if (strcmp(name,"DeviatoricStress")==0) return DeviatoricStressEnum; 635 else if (strcmp(name,"DeviatoricStressxx")==0) return DeviatoricStressxxEnum; 636 else if (strcmp(name,"DeviatoricStressxy")==0) return DeviatoricStressxyEnum; 635 637 else if (strcmp(name,"DeviatoricStressxz")==0) return DeviatoricStressxzEnum; 636 638 else if (strcmp(name,"DeviatoricStressyy")==0) return DeviatoricStressyyEnum; 637 639 else if (strcmp(name,"DeviatoricStressyz")==0) return DeviatoricStressyzEnum; … … 749 751 else if (strcmp(name,"Outputdefinition66")==0) return Outputdefinition66Enum; 750 752 else if (strcmp(name,"Outputdefinition67")==0) return Outputdefinition67Enum; 751 753 else if (strcmp(name,"Outputdefinition68")==0) return Outputdefinition68Enum; 752 else if (strcmp(name,"Outputdefinition69")==0) return Outputdefinition69Enum;753 else if (strcmp(name,"Outputdefinition70")==0) return Outputdefinition70Enum;754 754 else stage=7; 755 755 } 756 756 if(stage==7){ 757 if (strcmp(name,"Outputdefinition71")==0) return Outputdefinition71Enum; 757 if (strcmp(name,"Outputdefinition69")==0) return Outputdefinition69Enum; 758 else if (strcmp(name,"Outputdefinition70")==0) return Outputdefinition70Enum; 759 else if (strcmp(name,"Outputdefinition71")==0) return Outputdefinition71Enum; 758 760 else if (strcmp(name,"Outputdefinition72")==0) return Outputdefinition72Enum; 759 761 else if (strcmp(name,"Outputdefinition73")==0) return Outputdefinition73Enum; 760 762 else if (strcmp(name,"Outputdefinition74")==0) return Outputdefinition74Enum; … … 872 874 else if (strcmp(name,"Sset")==0) return SsetEnum; 873 875 else if (strcmp(name,"Verbose")==0) return VerboseEnum; 874 876 else if (strcmp(name,"TriangleInterp")==0) return TriangleInterpEnum; 875 else if (strcmp(name,"BilinearInterp")==0) return BilinearInterpEnum;876 else if (strcmp(name,"NearestInterp")==0) return NearestInterpEnum;877 877 else stage=8; 878 878 } 879 879 if(stage==8){ 880 if (strcmp(name,"XY")==0) return XYEnum; 880 if (strcmp(name,"BilinearInterp")==0) return BilinearInterpEnum; 881 else if (strcmp(name,"NearestInterp")==0) return NearestInterpEnum; 882 else if (strcmp(name,"XY")==0) return XYEnum; 881 883 else if (strcmp(name,"XYZ")==0) return XYZEnum; 882 884 else if (strcmp(name,"Dense")==0) return DenseEnum; 883 885 else if (strcmp(name,"MpiDense")==0) return MpiDenseEnum; -
../trunk-jpl/src/c/shared/io/Marshalling/Marshalling.h
1 /*\file Marshalling.h 2 *\brief: macros to help automate the marshalling, demarshalling, and marshalling size routines. 3 */ 4 5 #ifndef _MARSHALLING_H_ 6 #define _MARSHALLING_H_ 7 8 enum marshall_directions{ 9 MARSHALLING_FORWARD, 10 MARSHALLING_BACKWARDS 11 }; 12 13 #define MARSHALLING_ENUM(EN) \ 14 int enum_type=EN; \ 15 if(marshall_direction==MARSHALLING_FORWARD){\ 16 if(pmarshalled_data){\ 17 memcpy(*pmarshalled_data,&enum_type,sizeof(int));\ 18 *pmarshalled_data+=sizeof(int);\ 19 }\ 20 *pmarshalled_data_size+=sizeof(int);\ 21 } 22 23 #define MARSHALLING(FIELD) \ 24 \ 25 if(marshall_direction==MARSHALLING_FORWARD){\ 26 if(pmarshalled_data){\ 27 memcpy(*pmarshalled_data,&FIELD,sizeof(FIELD));\ 28 *pmarshalled_data+=sizeof(FIELD);\ 29 }\ 30 *pmarshalled_data_size+=sizeof(FIELD);\ 31 }\ 32 else{\ 33 memcpy(&FIELD,*pmarshalled_data,sizeof(FIELD));\ 34 *pmarshalled_data+=sizeof(FIELD);\ 35 } 36 37 #define MARSHALLING_ARRAY(FIELD,TYPE,SIZE) \ 38 \ 39 if(marshall_direction==MARSHALLING_FORWARD){\ 40 if(pmarshalled_data){\ 41 memcpy(*pmarshalled_data,FIELD,SIZE*sizeof(TYPE));\ 42 *pmarshalled_data+=SIZE*sizeof(TYPE);\ 43 }\ 44 *pmarshalled_data_size+=SIZE*sizeof(TYPE);\ 45 }\ 46 else{\ 47 memcpy(FIELD,*pmarshalled_data,SIZE*sizeof(TYPE));\ 48 *pmarshalled_data+=SIZE*sizeof(TYPE);\ 49 } 50 51 #define MARSHALLING_DYNAMIC(FIELD,TYPE,SIZE) \ 52 \ 53 if(marshall_direction==MARSHALLING_FORWARD){\ 54 if(pmarshalled_data){\ 55 memcpy(*pmarshalled_data,FIELD,SIZE*sizeof(TYPE));\ 56 *pmarshalled_data+=SIZE*sizeof(TYPE);\ 57 }\ 58 *pmarshalled_data_size+=SIZE*sizeof(TYPE);\ 59 }\ 60 else{\ 61 FIELD=xNew<TYPE>(SIZE);\ 62 memcpy(FIELD,*pmarshalled_data,SIZE*sizeof(TYPE));\ 63 *pmarshalled_data+=SIZE*sizeof(TYPE);\ 64 } 65 66 #endif -
../trunk-jpl/src/c/shared/io/io.h
11 11 #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!" 12 12 #endif 13 13 14 #include "./Comm/IssmComm.h" 14 15 #include "./Disk/diskio.h" 15 16 #include "./Print/Print.h" 16 #include "./ Comm/IssmComm.h"17 #include "./Marshalling/Marshalling.h" 17 18 18 19 #endif /* _IO_H_ */ -
../trunk-jpl/src/c/modules/MeshProfileIntersectionx/MeshProfileIntersectionx.cpp
251 251 IsIdenticalNode(xnodes[2],ynodes[2],xsegment[0],ysegment[0],tolerance)){ 252 252 253 253 /*ok, segments[0] is common to one of our vertices: */ 254 //if (el==318 && contouri==9){ _printf_("ok1" << "\n"); }255 254 coord1=0; 256 255 if(edge1==IntersectEnum){coord2=alpha1;} 257 256 if(edge2==IntersectEnum){coord2=beta1;} -
../trunk-jpl/src/c/toolkits/issm/Bucket.h
8 8 /*Headers:*/ 9 9 /*{{{*/ 10 10 #include "../../datastructures/datastructures.h" 11 #include "../../shared/ shared.h"11 #include "../../shared/io/Comm/IssmComm.h" 12 12 #include "../toolkitsenums.h" 13 13 /*}}}*/ 14 14 … … 128 128 else if (this->type==VECTOR_BUCKET) return new Bucket(this->m,this->idxm,this->values,this->mode); 129 129 else _error_("No Copy of Bucket because its type is invalid."); }; 130 130 /*}}}*/ 131 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){/*{{{*/ 132 _error_("not implemented yet!"); 133 } 134 /*}}}*/ 131 135 132 136 /*specific routines of Bucket: */ 133 137 void SpawnBucketsPerCpu(DataSet* bucketsofcpu_i,int rank_i,int* rowranks){ /*{{{*/ -
../trunk-jpl/src/c/classes/Contour.h
82 82 return (Object*) contour; 83 83 } 84 84 /*}}}*/ 85 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){/*{{{*/ 86 _error_("not implemented yet!"); 87 } 88 /*}}}*/ 89 85 90 }; 86 91 87 92 #endif /* _CONTOUR_H_ */ -
../trunk-jpl/src/c/classes/Materials/Matice.h
39 39 int Id(); 40 40 int ObjectEnum(); 41 41 Object* copy(); 42 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 42 43 /*}}}*/ 43 44 /*Update virtual funictions definitions: {{{*/ 44 45 void InputUpdateFromVector(IssmDouble* vector, int name, int type); -
../trunk-jpl/src/c/classes/Materials/Matpar.h
78 78 int Id(); 79 79 int ObjectEnum(); 80 80 Object *copy(); 81 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 81 82 /*}}}*/ 82 83 /*Update virtual functions resolution: {{{*/ 83 84 void InputUpdateFromVector(IssmDouble* vector, int name, int type); -
../trunk-jpl/src/c/classes/DependentObject.h
31 31 int Id(); 32 32 int ObjectEnum(); 33 33 Object* copy(void); 34 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){/*{{{*/ 35 _error_("not implemented yet!"); 36 } 34 37 /*}}}*/ 38 /*}}}*/ 35 39 36 40 /*DependentObject methods: */ 37 41 int NumDependents(void); -
../trunk-jpl/src/c/classes/Params/DoubleVecParam.h
36 36 int Id(); 37 37 int ObjectEnum(); 38 38 Object* copy(); 39 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 39 40 /*}}}*/ 40 41 /*Param virtual functions definitions: {{{*/ 41 42 int InstanceEnum(){return enum_type;} -
../trunk-jpl/src/c/classes/Params/GenericParam.h
51 51 // it does not clarify ownership of the newed up instance... 52 52 // use the default copy constructor instead 53 53 Object* copy() { return new GenericParam<P>(*this); }; 54 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 54 55 /*}}}*/ 55 56 /*Param vritual function definitions: {{{*/ 56 57 int InstanceEnum(){return myEnumVal;} -
../trunk-jpl/src/c/classes/Params/DoubleMatParam.h
37 37 int Id(); 38 38 int ObjectEnum(); 39 39 Object* copy(); 40 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 40 41 /*}}}*/ 41 42 /*Param vritual function definitions: {{{*/ 42 43 int InstanceEnum(){return enum_type;} -
../trunk-jpl/src/c/classes/Params/FileParam.h
35 35 int Id(); 36 36 int ObjectEnum(); 37 37 Object* copy(); 38 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 38 39 /*}}}*/ 39 40 /*Param vritual function definitions: {{{*/ 40 41 int InstanceEnum(){return enum_type;} -
../trunk-jpl/src/c/classes/Params/DataSetParam.h
36 36 int Id(); 37 37 int ObjectEnum(); 38 38 Object* copy(); 39 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 39 40 /*}}}*/ 40 41 /*Param vritual function definitions: {{{*/ 41 42 int InstanceEnum(){return enum_type;} -
../trunk-jpl/src/c/classes/Params/IntParam.h
36 36 int Id(); 37 37 int ObjectEnum(); 38 38 Object* copy(); 39 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 39 40 /*}}}*/ 40 41 /*Param vritual function definitions: {{{*/ 41 42 int InstanceEnum(){return enum_type;} -
../trunk-jpl/src/c/classes/Params/VectorParam.h
36 36 int Id(); 37 37 int ObjectEnum(); 38 38 Object* copy(); 39 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 39 40 /*}}}*/ 40 41 /*Param vritual function definitions: {{{*/ 41 42 int InstanceEnum(){return enum_type;} -
../trunk-jpl/src/c/classes/Params/MatrixParam.h
36 36 int Id(); 37 37 int ObjectEnum(); 38 38 Object* copy(); 39 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 39 40 /*}}}*/ 40 41 /*Param vritual function definitions: {{{*/ 41 42 int InstanceEnum(){return enum_type;} -
../trunk-jpl/src/c/classes/Params/StringArrayParam.h
37 37 int Id(); 38 38 int ObjectEnum(); 39 39 Object* copy(); 40 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 40 41 /*}}}*/ 41 42 /*Param vritual function definitions: {{{*/ 42 43 int InstanceEnum(){return enum_type;} -
../trunk-jpl/src/c/classes/Params/TransientParam.h
37 37 int Id(); 38 38 int ObjectEnum(); 39 39 Object* copy(); 40 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 40 41 /*}}}*/ 41 42 /*Param vritual function definitions: {{{*/ 42 43 int InstanceEnum(){return enum_type;} -
../trunk-jpl/src/c/classes/Params/DoubleParam.h
36 36 int Id(); 37 37 int ObjectEnum(); 38 38 Object* copy(); 39 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 39 40 /*}}}*/ 40 41 /*Param vritual function definitions: {{{*/ 41 42 int InstanceEnum(){return enum_type;} -
../trunk-jpl/src/c/classes/Params/DoubleMatArrayParam.h
38 38 int Id(); 39 39 int ObjectEnum(); 40 40 Object* copy(); 41 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 41 42 /*}}}*/ 42 43 /*Param vritual function definitions: {{{*/ 43 44 int InstanceEnum(){return enum_type;} -
../trunk-jpl/src/c/classes/Params/IntVecParam.h
37 37 int Id(); 38 38 int ObjectEnum(); 39 39 Object* copy(); 40 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 40 41 /*}}}*/ 41 42 /*Param virtual functions definitions: {{{*/ 42 43 int InstanceEnum(){return enum_type;} -
../trunk-jpl/src/c/classes/Params/BoolParam.h
35 35 int Id(); 36 36 int ObjectEnum(); 37 37 Object* copy(); 38 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 38 39 /*}}}*/ 39 40 /*Param vritual function definitions: {{{*/ 40 41 int InstanceEnum(){return enum_type;} -
../trunk-jpl/src/c/classes/Params/IntMatParam.h
37 37 int Id(); 38 38 int ObjectEnum(); 39 39 Object* copy(); 40 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 40 41 /*}}}*/ 41 42 /*Param vritual function definitions: {{{*/ 42 43 int InstanceEnum(){return enum_type;} -
../trunk-jpl/src/c/classes/Params/StringParam.h
36 36 int Id(); 37 37 int ObjectEnum(); 38 38 Object* copy(); 39 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 39 40 /*}}}*/ 40 41 /*Param vritual function definitions: {{{*/ 41 42 int InstanceEnum(){return enum_type;} -
../trunk-jpl/src/c/classes/Masscon.h
76 76 return (Object*) mf; 77 77 } 78 78 /*}}}*/ 79 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){/*{{{*/ 80 _error_("not implemented yet!"); 81 } 82 /*}}}*/ 79 83 /*Definition virtual function resolutoin: */ 80 84 char* Name(){/*{{{*/ 81 85 -
../trunk-jpl/src/c/classes/kriging/Observation.h
32 32 int ObjectEnum(){_error_("Not implemented yet"); }; 33 33 bool operator==(const Observation& ob) const; 34 34 Object *copy(); 35 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!");}; 35 36 37 36 38 /*Management*/ 37 39 void WriteXYObs(const Observation& ob, double* px, double* py, double* pobs); 38 40 void WriteXYObs(double* px,double* py,double* pobs); -
../trunk-jpl/src/c/classes/kriging/ExponentialVariogram.h
26 26 int Id(){_error_("Not implemented yet");}; 27 27 int ObjectEnum(){_error_("Not implemented yet");}; 28 28 Object* copy(); 29 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 29 30 31 30 32 /*Variogram functions*/ 31 33 double SemiVariogram(double deltax,double deltay); 32 34 double Covariance(double deltax,double deltay); -
../trunk-jpl/src/c/classes/kriging/PowerVariogram.h
26 26 int Id(){_error_("Not implemented yet");}; 27 27 int ObjectEnum(){_error_("Not implemented yet");}; 28 28 Object* copy(); 29 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 29 30 31 30 32 /*Variogram functions*/ 31 33 double SemiVariogram(double deltax,double deltay); 32 34 double Covariance(double deltax,double deltay); -
../trunk-jpl/src/c/classes/kriging/Quadtree.h
30 30 int Id() {_error_("not implemented yet"); }; 31 31 int ObjectEnum(){_error_("not implemented yet"); }; 32 32 Object *copy(); 33 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!");}; 33 34 35 34 36 /*Methods*/ 35 37 int IsWithinRange(double x,double y,double range); 36 38 void RangeSearch(int *indices,int *pnobs,double x,double y,double range); -
../trunk-jpl/src/c/classes/kriging/GaussianVariogram.h
27 27 int Id(){_error_("Not implemented yet");}; 28 28 int ObjectEnum(){_error_("Not implemented yet");}; 29 29 Object* copy(); 30 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 30 31 31 32 /*Variogram functions*/ 32 33 double SemiVariogram(double deltax,double deltay); -
../trunk-jpl/src/c/classes/kriging/SphericalVariogram.h
26 26 int Id(){_error_("Not implemented yet");}; 27 27 int ObjectEnum(){_error_("Not implemented yet");}; 28 28 Object* copy(); 29 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 29 30 31 30 32 /*Variogram functions*/ 31 33 double SemiVariogram(double deltax,double deltay); 32 34 double Covariance(double deltax,double deltay); -
../trunk-jpl/src/c/classes/Options/Option.h
25 25 int Id(){_error_("Not implemented yet"); }; 26 26 int ObjectEnum(){return OptionEnum; }; 27 27 Object *copy(){_error_("Not implemented yet"); }; 28 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 28 29 30 29 31 /*virtual functions: */ 30 32 virtual char* Name()=0; 31 33 virtual int NumEl()=0; -
../trunk-jpl/src/c/classes/Loads/Loads.cpp
14 14 #include <functional> 15 15 #include <algorithm> 16 16 17 #include "../../shared/io/Comm/IssmComm.h" 17 18 #include "./Loads.h" 18 19 #include "./Load.h" 19 #include "../../shared/shared.h"20 20 21 21 using namespace std; 22 22 /*}}}*/ -
../trunk-jpl/src/c/classes/Loads/Riftfront.h
61 61 void Echo(); 62 62 int Id(); 63 63 int ObjectEnum(); 64 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 64 65 /*}}}*/ 65 66 /*Update virtual functions resolution: {{{*/ 66 67 void InputUpdateFromConstant(IssmDouble constant, int name); -
../trunk-jpl/src/c/classes/Loads/Numericalflux.h
44 44 void Echo(); 45 45 int Id(); 46 46 int ObjectEnum(); 47 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 47 48 /*}}}*/ 48 49 /*Update virtual functions resolution: {{{*/ 49 50 void InputUpdateFromConstant(IssmDouble constant, int name){/*Do nothing*/}; -
../trunk-jpl/src/c/classes/Loads/Penpair.h
35 35 void Echo(); 36 36 int Id(); 37 37 int ObjectEnum(); 38 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 38 39 /*}}}*/ 39 40 /*Update virtual functions resolution: {{{*/ 40 41 void InputUpdateFromConstant(IssmDouble constant, int name); -
../trunk-jpl/src/c/classes/Loads/Pengrid.h
54 54 int Id(); 55 55 int ObjectEnum(); 56 56 Object* copy(); 57 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 57 58 /*}}}*/ 58 59 /*Update virtual functions resolution: {{{*/ 59 60 void InputUpdateFromVector(IssmDouble* vector, int name, int type); -
../trunk-jpl/src/c/classes/ExternalResults/GenericExternalResult.h
125 125 Object* copy(void) { /*{{{*/ 126 126 return new GenericExternalResult<ResultType>(this->id,this->result_name,this->value,this->step,this->time); 127 127 } /*}}}*/ 128 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){/*{{{*/ 129 _error_("not implemented yet!"); 130 } 131 /*}}}*/ 128 132 133 134 129 135 /*GenericExternalResult management: */ 130 136 void WriteData(FILE* fid,bool io_gather){ /*{{{*/ 131 137 -
../trunk-jpl/src/c/classes/FemModel.cpp
608 608 609 609 FILE* restartfid=NULL; 610 610 char* restartfilename = NULL; 611 int femmodel_size; 612 char* femmodel_buffer=NULL; 611 613 612 614 /*First, recover the name of the restart file: */ 613 615 parameters->FindParam(&restartfilename,RestartFileNameEnum); … … 615 617 /*Open file for writing: */ 616 618 restartfid=pfopen(restartfilename,"wb"); 617 619 620 /*Create buffer to hold marshalled femmodel: */ 621 this->Marshall(NULL,&femmodel_size,MARSHALLING_FORWARD); 622 femmodel_buffer=xNew<char>(femmodel_size); 623 624 /*Marshall:*/ 625 this->Marshall(&femmodel_buffer,&femmodel_size,MARSHALLING_FORWARD); 626 627 /*write buffer: */ 628 fwrite(femmodel_buffer,femmodel_size,sizeof(IssmPDouble),restartfid); 629 618 630 /*Done, close file :*/ 619 631 pfclose(restartfid,restartfilename); 620 632 621 633 /*Free ressources: */ 634 xDelete<char>(femmodel_buffer); 622 635 xDelete<char>(restartfilename); 623 636 624 637 } … … 626 639 void FemModel::Restart(void){/*{{{*/ 627 640 } 628 641 /*}}}*/ 642 void FemModel::Marshall(char** pmarshalled_data, int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ 629 643 644 MARSHALLING_ENUM(FemModelEnum); 645 646 MARSHALLING(solution_type); 647 MARSHALLING(analysis_counter); 648 MARSHALLING_DYNAMIC(analysis_type_list,int,analysis_counter); 649 650 if(marshall_direction==MARSHALLING_BACKWARDS){ 651 profiler=new Profiler; 652 elements=new Elements(); 653 nodes=new Nodes(); 654 vertices=new Vertices(); 655 constraints=new Constraints(); 656 loads=new Loads(); 657 materials=new Materials(); 658 parameters=new Parameters(); 659 results=new Results(); 660 } 661 662 profiler->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); 663 elements->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); 664 nodes->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); 665 vertices->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); 666 constraints->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); 667 loads->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); 668 materials->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); 669 parameters->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); 670 results->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); 671 672 MARSHALLING(comm); 673 } 674 /*}}}*/ 675 630 676 /*Modules:*/ 631 677 int FemModel::UpdateVertexPositionsx(void){ /*{{{*/ 632 678 -
../trunk-jpl/src/c/classes/IndependentObject.h
30 30 int Id(); 31 31 int ObjectEnum(); 32 32 Object* copy(void); 33 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!");}; 33 34 /*}}}*/ 34 35 /*IndependentObject methods: {{{*/ 35 36 void FetchIndependent(IoModel* iomodel,int* pXcount,IssmPDouble* X); -
../trunk-jpl/src/c/classes/Node.h
49 49 int Id(); 50 50 int ObjectEnum(); 51 51 Object *copy(); 52 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 52 53 53 54 /*Node numerical routines*/ 54 55 void CreateNodalConstraints(Vector<IssmDouble>* ys); -
../trunk-jpl/src/c/classes/Elements/Element.h
66 66 void DeleteInput(int input_enum); 67 67 void DeleteMaterials(void); 68 68 IssmDouble Divergence(void); 69 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!");}; 69 70 void dViscositydBFS(IssmDouble* pdmudB,int dim,IssmDouble* xyz_list,Gauss* gauss,Input* vx_input,Input* vy_input,Input* vz_input); 70 71 void dViscositydBHO(IssmDouble* pdmudB,int dim,IssmDouble* xyz_list,Gauss* gauss,Input* vx_input,Input* vy_input); 71 72 void dViscositydBSSA(IssmDouble* pdmudB,int dim,IssmDouble* xyz_list,Gauss* gauss,Input* vx_input,Input* vy_input); -
../trunk-jpl/src/c/classes/Misfit.h
103 103 return (Object*) mf; 104 104 } 105 105 /*}}}*/ 106 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){/*{{{*/ 107 _error_("not implemented yet!"); 108 } 109 /*}}}*/ 106 110 /*Definition virtual function resolutoin: */ 107 111 char* Name(){/*{{{*/ 108 112 -
../trunk-jpl/src/c/classes/Inputs/DoubleInput.h
29 29 int Id(); 30 30 int ObjectEnum(); 31 31 Object* copy(); 32 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 32 33 /*}}}*/ 33 34 /*DoubleInput management: {{{*/ 34 35 int InstanceEnum(); -
../trunk-jpl/src/c/classes/Inputs/SegInput.h
31 31 int Id(); 32 32 int ObjectEnum(); 33 33 Object *copy(); 34 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 34 35 35 36 /*SegInput management:*/ 36 37 int InstanceEnum(); -
../trunk-jpl/src/c/classes/Inputs/TetraInput.h
31 31 int Id(); 32 32 int ObjectEnum(); 33 33 Object *copy(); 34 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 34 35 35 36 /*TetraInput management:*/ 36 37 int InstanceEnum(); -
../trunk-jpl/src/c/classes/Inputs/ControlInput.h
34 34 int Id(); 35 35 int ObjectEnum(); 36 36 Object* copy(); 37 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 37 38 /*}}}*/ 38 39 /*ControlInput management: {{{*/ 39 40 int InstanceEnum(); -
../trunk-jpl/src/c/classes/Inputs/DatasetInput.h
31 31 int Id(); 32 32 int ObjectEnum(); 33 33 Object* copy(); 34 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 34 35 /*}}}*/ 35 36 /*DatasetInput management: {{{*/ 36 37 void AddInput(Input* input,int id); -
../trunk-jpl/src/c/classes/Inputs/IntInput.h
30 30 int Id(); 31 31 int ObjectEnum(); 32 32 Object* copy(); 33 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 33 34 /*}}}*/ 34 35 /*IntInput management: {{{*/ 35 36 int InstanceEnum(); -
../trunk-jpl/src/c/classes/Inputs/BoolInput.h
26 26 int Id(); 27 27 int ObjectEnum(); 28 28 Object *copy(); 29 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 29 30 /*}}}*/ 30 31 /*BoolInput management: {{{*/ 31 32 int InstanceEnum(); -
../trunk-jpl/src/c/classes/Inputs/TriaInput.h
31 31 int Id(); 32 32 int ObjectEnum(); 33 33 Object *copy(); 34 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 34 35 35 36 /*TriaInput management:*/ 36 37 int InstanceEnum(); -
../trunk-jpl/src/c/classes/Inputs/PentaInput.h
31 31 int Id(); 32 32 int ObjectEnum(); 33 33 Object *copy(); 34 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 34 35 35 36 /*PentaInput management*/ 36 37 int InstanceEnum(); -
../trunk-jpl/src/c/classes/Inputs/TransientInput.h
36 36 int Id(); 37 37 int ObjectEnum(); 38 38 Object* copy(); 39 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 39 40 /*}}}*/ 40 41 /*TransientInput management: {{{*/ 41 42 int InstanceEnum(); -
../trunk-jpl/src/c/classes/Segment.h
70 70 return new Segment(this->eid,this->x1,this->y1,this->x2,this->y2); 71 71 } 72 72 /*}}}*/ 73 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){/*{{{*/ 74 _error_("not implemented yet!"); 75 } 76 /*}}}*/ 73 77 74 78 }; 75 79 -
../trunk-jpl/src/c/classes/Nodes.cpp
10 10 #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!" 11 11 #endif 12 12 13 #include "../shared/io/Comm/IssmComm.h" 13 14 #include "./Nodes.h" 14 #include "../shared/shared.h"15 15 #include "./Node.h" 16 16 17 17 using namespace std; -
../trunk-jpl/src/c/classes/Massconaxpby.h
87 87 return (Object*) mf; 88 88 } 89 89 /*}}}*/ 90 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){/*{{{*/ 91 _error_("not implemented yet!"); 92 } 93 /*}}}*/ 90 94 /*Definition virtual function resolutoin: */ 91 95 char* Name(){/*{{{*/ 92 96 -
../trunk-jpl/src/c/classes/Vertex.h
41 41 int Id(); 42 42 int ObjectEnum(); 43 43 Object* copy(); 44 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 45 44 46 /*}}}*/ 45 47 /*Vertex management:*/ 46 48 int Pid(void); -
../trunk-jpl/src/c/classes/Constraints/SpcDynamic.h
34 34 void Echo(); 35 35 int Id(); 36 36 int ObjectEnum(); 37 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 37 38 38 39 /*Constraint virtual functions definitions*/ 39 40 void ActivatePenaltyMethod(void); -
../trunk-jpl/src/c/classes/Constraints/SpcStatic.h
33 33 int Id(); 34 34 int ObjectEnum(); 35 35 Object* copy(); 36 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 36 37 /*}}}*/ 37 38 /*Constraint virtual functions definitions: {{{*/ 38 39 void ActivatePenaltyMethod(void); -
../trunk-jpl/src/c/classes/Constraints/SpcTransient.h
35 35 void Echo(); 36 36 int Id(); 37 37 int ObjectEnum(); 38 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 38 39 /*}}}*/ 39 40 /*Constraint virtual functions definitions: {{{*/ 40 41 void ActivatePenaltyMethod(void); -
../trunk-jpl/src/c/classes/Profiler.h
42 42 int Id(); 43 43 int ObjectEnum(); 44 44 Object *copy(); 45 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; 45 46 /*}}}*/ 46 47 /*Profiler routines {{{*/ 47 48 void Tag(int tagenum,bool dontmpisync=false); -
../trunk-jpl/src/c/classes/Massfluxatgate.h
120 120 return new Massfluxatgate(this->name,this->definitionenum,this->numsegments,this->x1,this->y1,this->x2,this->y2,this->elements); 121 121 } 122 122 /*}}}*/ 123 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){/*{{{*/ 124 _error_("not implemented yet!"); 125 } 126 /*}}}*/ 123 127 /*Definition virtual function resolutoin: */ 124 128 char* Name(){/*{{{*/ 125 129 -
../trunk-jpl/src/c/classes/FemModel.h
60 60 void SetCurrentConfiguration(int configuration_type); 61 61 void SetCurrentConfiguration(int configuration_type,int analysis_type); 62 62 void CheckPoint(void); 63 void Marshall(char** pmarshalled_data, int* pmarshalled_data_size, int marshall_direction); 63 64 void Restart(void); 64 65 65 66 /*Modules*/ -
../trunk-jpl/src/c/datastructures/DataSet.cpp
18 18 19 19 #include "../datastructures/datastructures.h" 20 20 #include "../shared/shared.h" 21 #include "../classes/classes.h" 21 22 22 23 using namespace std; 23 24 /*}}}*/ … … 85 86 /*}}}*/ 86 87 87 88 /*Specific methods*/ 89 void DataSet::Marshall(char** pmarshalled_data, int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ 90 91 vector<Object*>::iterator obj; 92 int obj_enum; 93 int i; 94 95 if(marshall_direction==MARSHALLING_FORWARD){ 96 numsorted=objects.size(); 97 } 98 99 MARSHALLING_ENUM(DataSetEnum); 100 MARSHALLING(enum_type); 101 MARSHALLING(sorted); 102 MARSHALLING(presorted); 103 MARSHALLING(numsorted); 104 MARSHALLING_DYNAMIC(sorted_ids,int,numsorted); 105 MARSHALLING_DYNAMIC(id_offsets,int,numsorted); 106 107 /*Now branch according to direction of marshalling: */ 108 if(marshall_direction==MARSHALLING_FORWARD){ 109 /*Go through our objects, and marshall them into the buffer: */ 110 for ( obj=this->objects.begin() ; obj < this->objects.end(); obj++ ){ 111 (*obj)->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); 112 } 113 } 114 else{ 115 /*This is the heart of the demashalling method. We have a buffer coming 116 in, and we are supposed to create a dataset out of it. No such thing 117 as class orientation for buffers, we need to key off the enum of each 118 object stored in the buffer. */ 119 for(i=0;i<this->numsorted;i++){ 120 121 /*Recover enum of object first: */ 122 MARSHALLING_ENUM(obj_enum); 123 124 /*Reset the file pointer to point again to the beginning of the object: */ 125 *pmarshalled_data-=sizeof(int); 126 127 /*Giant case statement to spin-up the right object, and demarshall into it the information 128 *stored in the buffer: */ 129 switch(enum_type){ 130 case NodeEnum:{ 131 Node* node=NULL; 132 node=new Node(); 133 node->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); 134 this->AddObject(node);} 135 break; 136 case VertexEnum:{ 137 Vertex* vertex=NULL; 138 vertex=new Vertex(); 139 vertex->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); 140 this->AddObject(vertex);} 141 break; 142 default: 143 _error_("could not recognize enum type: " << EnumToStringx(enum_type)); 144 } 145 } 146 } 147 } 148 /*}}}*/ 88 149 int DataSet::AddObject(Object* object){/*{{{*/ 89 150 90 151 _assert_(this); -
../trunk-jpl/src/c/datastructures/DataSet.h
32 32 DataSet(); 33 33 DataSet(int enum_type); 34 34 ~DataSet(); 35 void Marshall(char** pmarshalled_data, int* pmarshalled_data_size, int marshall_direction); 35 36 36 37 /*management*/ 37 38 int GetEnum(); -
../trunk-jpl/src/c/datastructures/Object.h
20 20 virtual int Id()=0; 21 21 virtual int ObjectEnum()=0; 22 22 virtual Object* copy()=0; 23 virtual void Marshall(char** pmarshalled_data, int* pmarshalled_data_size, int marshall_direction)=0; 23 24 24 25 }; 25 26 #endif -
../trunk-jpl/src/m/dev/devpath.py
21 21 if root not in sys.path: 22 22 sys.path.append(root) 23 23 24 sys.path.append(ISSM_DIR + '/ lib')24 sys.path.append(ISSM_DIR + '/build-fw/lib') 25 25 sys.path.append(ISSM_DIR + '/src/wrappers/python/.libs') 26 26 # If using clusters, we need to have the path to the cluster settings directory 27 27 if(JPL_SVN!=None): -
../trunk-jpl/src/m/dev/devpath.m
17 17 18 18 %ISSM path 19 19 addpath([ISSM_DIR '/src/m/os/']); %load recursivepath 20 addpath([ISSM_DIR '/ lib']); %load mex20 addpath([ISSM_DIR '/build-fw/lib']); %load mex 21 21 addpath(recursivepath([ISSM_DIR '/src/m'])); 22 22 addpath(recursivepath([ISSM_DIR '/externalpackages/scotch'])); 23 23 addpath(recursivepath([ISSM_DIR '/externalpackages/canos'])); -
../trunk-jpl/src/m/mesh/bamg.m
234 234 track=getfieldvalue(options,'tracks'); 235 235 if all(ischar(track)), 236 236 A=expread(track); 237 track=[A.x A.y]; 237 track=[]; 238 for i=1:length(A), 239 track=[track; [A(i).x A(i).y]]; 240 end 238 241 else 239 242 track=double(track); %for some reason, it is of class "single" 240 243 end -
../trunk-jpl/src/m/enum/FemModelEnum.m
1 function macro=FemModelEnum() 2 %FEMMODELENUM - Enum of FemModel 3 % 4 % WARNING: DO NOT MODIFY THIS FILE 5 % this file has been automatically generated by src/c/shared/Enum/Synchronize.sh 6 % Please read src/c/shared/Enum/README for more information 7 % 8 % Usage: 9 % macro=FemModelEnum() 10 11 macro=StringToEnum('FemModel'); -
../trunk-jpl/src/m/enum/EnumDefinitions.py
8 8 9 9 """ 10 10 11 def FemModelEnum(): return StringToEnum("FemModel")[0] 11 12 def AutodiffIsautodiffEnum(): return StringToEnum("AutodiffIsautodiff")[0] 12 13 def AutodiffNumDependentsEnum(): return StringToEnum("AutodiffNumDependents")[0] 13 14 def AutodiffNumDependentObjectsEnum(): return StringToEnum("AutodiffNumDependentObjects")[0] … … 445 446 def FSApproximationEnum(): return StringToEnum("FSApproximation")[0] 446 447 def FSvelocityEnum(): return StringToEnum("FSvelocity")[0] 447 448 def FSpressureEnum(): return StringToEnum("FSpressure")[0] 449 def DataSetEnum(): return StringToEnum("DataSet")[0] 448 450 def ConstraintsEnum(): return StringToEnum("Constraints")[0] 449 451 def LoadsEnum(): return StringToEnum("Loads")[0] 450 452 def MaterialsEnum(): return StringToEnum("Materials")[0] -
../trunk-jpl/src/m/enum/DataSetEnum.m
1 function macro=DataSetEnum() 2 %DATASETENUM - Enum of DataSet 3 % 4 % WARNING: DO NOT MODIFY THIS FILE 5 % this file has been automatically generated by src/c/shared/Enum/Synchronize.sh 6 % Please read src/c/shared/Enum/README for more information 7 % 8 % Usage: 9 % macro=DataSetEnum() 10 11 macro=StringToEnum('DataSet');
Note:
See TracBrowser
for help on using the repository browser.