Changeset 22418
- Timestamp:
- 02/14/18 08:41:38 (7 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/Makefile.am
r22417 r22418 49 49 ./modules/Bamgx/Bamgx.cpp\ 50 50 ./modules/BamgConvertMeshx/BamgConvertMeshx.cpp\ 51 ./modules/BamgTriangulatex/BamgTriangulatex.cpp\ 52 ./modules/InterpFromMeshToMesh2dx/InterpFromMeshToMesh2dx.cpp 51 ./modules/BamgTriangulatex/BamgTriangulatex.cpp 53 52 54 53 #do not include AmrBamg with ADOLC … … 567 566 ./modules/InterpFromMesh2dx/InterpFromMesh2dx.cpp\ 568 567 ./modules/InterpFromMesh2dx/InterpFromMesh2dxt.cpp\ 568 ./modules/InterpFromMeshToMesh2dx/InterpFromMeshToMesh2dx.cpp\ 569 569 ./modules/InterpFromMeshToMesh3dx/InterpFromMeshToMesh3dx.cpp\ 570 570 ./modules/InterpFromMeshToGridx/InterpFromMeshToGridx.cpp\ -
issm/trunk-jpl/src/c/classes/FemModel.cpp
r22417 r22418 2628 2628 2629 2629 /*Finally: interpolate all inputs and insert them into the new elements.*/ 2630 #ifdef _HAVE_BAMG_2631 2630 this->InterpolateInputs(new_vertices,new_elements); 2632 #else2633 _error_("Cannot interpolate inputs without bamg");2634 #endif2635 2631 2636 2632 /*Delete old structure and set new pointers*/ … … 2871 2867 } 2872 2868 /*}}}*/ 2873 #ifdef _HAVE_BAMG_2874 2869 void FemModel::InterpolateInputs(Vertices* newfemmodel_vertices,Elements* newfemmodel_elements){/*{{{*/ 2875 2870 … … 2986 2981 } 2987 2982 /*}}}*/ 2988 #endif2989 2983 void FemModel::WriteMeshInResults(void){/*{{{*/ 2990 2984 … … 3427 3421 3428 3422 /*Interpolate spc values and flags in the new partition*/ 3429 #ifdef _HAVE_BAMG_3430 3423 InterpFromMeshToMesh2dx(&newspc,elementslist,x,y,numberofvertices,numberofelements, 3431 3424 spc,numberofvertices,numberofcols, 3432 3425 newx,newy,newnumberofvertices,NULL); 3433 #else3434 _error_("cannot interpolate without bamg");3435 #endif3436 3426 3437 3427 /*Now, insert the interpolated constraints in the data set (constraints)*/ -
issm/trunk-jpl/src/c/classes/FemModel.h
r22417 r22418 176 176 void CreateConstraints(Vertices* newfemmodel_vertices,int nodecounter,int constraintcounter,int analysis_enum,Constraints* newfemmodel_constraints); 177 177 void GetInputs(int* pnumP0inputs,IssmDouble** pP0inputs,int** pP0input_enums,int** pP0input_interp,int* pnumP1inputs,IssmDouble** pP1inputs,int** pP1input_enums,int** pP1input_interp); 178 #ifdef _HAVE_BAMG_179 178 void InterpolateInputs(Vertices* newfemmodel_vertices,Elements* newfemmodel_elements); 180 #endif181 179 void UpdateElements(int newnumberofelements,int* newelementslist,bool* my_elements,int nodecounter,int analysis_counter,Elements* newelements); 182 180 void ElementsAndVerticesPartitioning(int& newnumberofvertices,int& newnumberofelements,int& elementswidth,int* newelementslist,bool** pmy_elements,int** pmy_vertices); -
issm/trunk-jpl/src/c/modules/InterpFromMeshToMesh2dx/InterpFromMeshToMesh2dx.cpp
r22252 r22418 7 7 #include "../../toolkits/toolkits.h" 8 8 #include "../../classes/classes.h" 9 10 #ifdef _HAVE_BAMG_ 9 11 #include "../../bamg/bamgobjects.h" 10 11 12 using namespace bamg; 12 13 using namespace std; 14 #endif 13 15 14 16 int InterpFromMeshToMesh2dx(double** pdata_interp,int* index_data,double* x_data,double* y_data,int nods_data,int nels_data, 15 17 double* data,int M_data,int N_data,double* x_interp,double* y_interp,int N_interp,Options* options){ 18 19 #ifdef _HAVE_BAMG_ 16 20 17 21 /*Output*/ … … 172 176 xDelete<int>(connectivity); 173 177 *pdata_interp=data_interp; 178 179 #else 180 _error_("Cannot interpolate without bamg support"); 181 #endif 174 182 return 1; 175 183 } -
issm/trunk-jpl/src/c/modules/modules.h
r22417 r22418 10 10 #include "./BamgConvertMeshx/BamgConvertMeshx.h" 11 11 #include "./BamgTriangulatex/BamgTriangulatex.h" 12 #include "./InterpFromMeshToMesh2dx/InterpFromMeshToMesh2dx.h"13 12 #endif 14 13 … … 44 43 #include "./InterpFromMesh2dx/InterpFromMesh2dx.h" 45 44 #include "./InterpFromGridToMeshx/InterpFromGridToMeshx.h" 45 #include "./InterpFromMeshToMesh2dx/InterpFromMeshToMesh2dx.h" 46 46 #include "./InterpFromMeshToMesh3dx/InterpFromMeshToMesh3dx.h" 47 47 #include "./InterpFromMeshToGridx/InterpFromMeshToGridx.h"
Note:
See TracChangeset
for help on using the changeset viewer.