Changeset 20346


Ignore:
Timestamp:
03/24/16 14:45:57 (9 years ago)
Author:
Eric.Larour
Message:

CHG: encapsulating ISSM COMM objects into a GenericParam object to avoid issues with gcc and intel compilers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/main/issm_slr.cpp

    r20235 r20346  
    9595       
    9696        /*Now that the models are initialized, keep communicator information in the parameters datasets of each model: */
    97         femmodel->parameters->AddObject(new IntParam(WorldCommEnum,worldcomm));
     97        femmodel->parameters->AddObject(new GenericParam<ISSM_MPI_Comm>(worldcomm,WorldCommEnum));
    9898        femmodel->parameters->AddObject(new IntParam(NumModelsEnum,nummodels));
    9999        femmodel->parameters->AddObject(new IntParam(ModelIdEnum,modelid));
    100100        femmodel->parameters->AddObject(new IntParam(EarthIdEnum,earthid));
    101         if(modelid==earthid)femmodel->parameters->AddObject(new IntVecParam(IcecapToEarthCommEnum,(int*)fromicecomms,nummodels-1));
    102         else femmodel->parameters->AddObject(new IntParam(IcecapToEarthCommEnum,toearthcomm));
     101        if(modelid==earthid) femmodel->parameters->AddObject(new GenericParam<ISSM_MPI_Comm*>(fromicecomms,IcecapToEarthCommEnum));
     102        else femmodel->parameters->AddObject(new GenericParam<ISSM_MPI_Comm>(toearthcomm,IcecapToEarthCommEnum));
    103103
    104104        /*Solve: */
Note: See TracChangeset for help on using the changeset viewer.