Changeset 22417


Ignore:
Timestamp:
02/13/18 11:37:45 (7 years ago)
Author:
Mathieu Morlighem
Message:

CHG: better shielding of bamg functions

Location:
issm/trunk-jpl/src/c
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/Makefile.am

    r22372 r22417  
    4949                                         ./modules/Bamgx/Bamgx.cpp\
    5050                                         ./modules/BamgConvertMeshx/BamgConvertMeshx.cpp\
    51                                          ./modules/BamgTriangulatex/BamgTriangulatex.cpp
     51                                         ./modules/BamgTriangulatex/BamgTriangulatex.cpp\
     52                                         ./modules/InterpFromMeshToMesh2dx/InterpFromMeshToMesh2dx.cpp
    5253
    5354#do not include AmrBamg with ADOLC
     
    304305                                        ./modules/ModelProcessorx/CreateOutputDefinitions.cpp\
    305306                                        ./modules/OutputDefinitionsResponsex/OutputDefinitionsResponsex.cpp\
    306                                         ./modules/InterpFromMeshToMesh2dx/InterpFromMeshToMesh2dx.cpp\
    307307                                        ./classes/Inputs/PentaInput.cpp\
    308308                                        ./classes/Inputs/TetraInput.cpp
  • issm/trunk-jpl/src/c/classes/FemModel.cpp

    r22379 r22417  
    25132513
    25142514/*AMR*/
    2515 #if !defined(_HAVE_ADOLC_)
     2515#if !defined(_HAVE_ADOLC_) 
    25162516void FemModel::ReMesh(void){/*{{{*/
    25172517
     
    26282628
    26292629        /*Finally: interpolate all inputs and insert them into the new elements.*/
     2630        #ifdef _HAVE_BAMG_
    26302631        this->InterpolateInputs(new_vertices,new_elements);
     2632        #else
     2633        _error_("Cannot interpolate inputs without bamg");
     2634        #endif
    26312635
    26322636        /*Delete old structure and set new pointers*/
     
    28672871}
    28682872/*}}}*/
     2873#ifdef _HAVE_BAMG_
    28692874void FemModel::InterpolateInputs(Vertices* newfemmodel_vertices,Elements* newfemmodel_elements){/*{{{*/
    28702875       
     
    29812986}
    29822987/*}}}*/
     2988#endif
    29832989void FemModel::WriteMeshInResults(void){/*{{{*/
    29842990
     
    34213427
    34223428        /*Interpolate spc values and flags in the new partition*/
     3429        #ifdef _HAVE_BAMG_
    34233430        InterpFromMeshToMesh2dx(&newspc,elementslist,x,y,numberofvertices,numberofelements,
    34243431                                                                spc,numberofvertices,numberofcols,
    34253432                                                                newx,newy,newnumberofvertices,NULL);
     3433        #else
     3434        _error_("cannot interpolate without bamg");
     3435        #endif
    34263436       
    34273437        /*Now, insert the interpolated constraints in the data set (constraints)*/
  • issm/trunk-jpl/src/c/classes/FemModel.h

    r22379 r22417  
    176176                void CreateConstraints(Vertices* newfemmodel_vertices,int nodecounter,int constraintcounter,int analysis_enum,Constraints* newfemmodel_constraints);
    177177                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_
    178179                void InterpolateInputs(Vertices* newfemmodel_vertices,Elements* newfemmodel_elements);
     180                #endif
    179181                void UpdateElements(int newnumberofelements,int* newelementslist,bool* my_elements,int nodecounter,int analysis_counter,Elements* newelements);
    180182                void ElementsAndVerticesPartitioning(int& newnumberofvertices,int& newnumberofelements,int& elementswidth,int* newelementslist,bool** pmy_elements,int** pmy_vertices);
  • issm/trunk-jpl/src/c/modules/Krigingx/Krigingx.cpp

    r18063 r22417  
    7171        }
    7272        else if(strcmp(output,"delaunay")==0){
     73
     74                #ifdef _HAVE_BAMG_
    7375                int nobs,nel;
    7476                double *x     = NULL;
     
    8991                xDelete<double>(data);
    9092                xDelete<int>(index);
     93                #else
     94                _error_("you did not compile ISSM with bamg");
     95                #endif
    9196        }
    9297        else if(strcmp(output,"nearestneighbor")==0){
  • issm/trunk-jpl/src/c/modules/modules.h

    r22004 r22417  
    66#define _ISSM_MODULES_H_
    77
     8#ifdef _HAVE_BAMG_
     9#include "./Bamgx/Bamgx.h"
     10#include "./BamgConvertMeshx/BamgConvertMeshx.h"
     11#include "./BamgTriangulatex/BamgTriangulatex.h"
     12#include "./InterpFromMeshToMesh2dx/InterpFromMeshToMesh2dx.h"
     13#endif
     14
    815/*Modules: */
    916#include "./AllocateSystemMatricesx/AllocateSystemMatricesx.h"
    1017#include "./AverageOntoPartitionx/AverageOntoPartitionx.h"
    11 #include "./Bamgx/Bamgx.h"
    12 #include "./BamgConvertMeshx/BamgConvertMeshx.h"
    13 #include "./BamgTriangulatex/BamgTriangulatex.h"
    1418#include "./Calvingx/Calvingx.h"
    1519#include "./Chacox/Chacox.h"
     
    4044#include "./InterpFromMesh2dx/InterpFromMesh2dx.h"
    4145#include "./InterpFromGridToMeshx/InterpFromGridToMeshx.h"
    42 #include "./InterpFromMeshToMesh2dx/InterpFromMeshToMesh2dx.h"
    4346#include "./InterpFromMeshToMesh3dx/InterpFromMeshToMesh3dx.h"
    4447#include "./InterpFromMeshToGridx/InterpFromMeshToGridx.h"
Note: See TracChangeset for help on using the changeset viewer.