Changeset 20235
- Timestamp:
- 02/24/16 13:15:58 (9 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/cores/sealevelrise_core.cpp
r20203 r20235 109 109 110 110 /*retrieve the inter communicators that will be used to send data from each ice cap to the earth: */ 111 if(modelid==earthid)femmodel->parameters->FindParam( &fromcomms,&nv,IcecapToEarthCommEnum);112 else femmodel->parameters->FindParam( &tocomm, IcecapToEarthCommEnum);111 if(modelid==earthid)femmodel->parameters->FindParam((int**)(&fromcomms),&nv,IcecapToEarthCommEnum); 112 else femmodel->parameters->FindParam((int*)(&tocomm), IcecapToEarthCommEnum); 113 113 114 114 /*For each icecap, retrieve the forcing vector that will be sent to the earth model: */ … … 228 228 229 229 /*retrieve the inter communicators that will be used to send data from earth to ice caps:*/ 230 if(modelid==earthid)femmodel->parameters->FindParam( &tocomms,&numcoms,IcecapToEarthCommEnum);231 else femmodel->parameters->FindParam( &fromcomm, IcecapToEarthCommEnum);230 if(modelid==earthid)femmodel->parameters->FindParam((int**)(&tocomms),&numcoms,IcecapToEarthCommEnum); 231 else femmodel->parameters->FindParam((int*)(&fromcomm), IcecapToEarthCommEnum); 232 232 233 233 -
issm/trunk-jpl/src/c/main/issm_slr.cpp
r20204 r20235 99 99 femmodel->parameters->AddObject(new IntParam(ModelIdEnum,modelid)); 100 100 femmodel->parameters->AddObject(new IntParam(EarthIdEnum,earthid)); 101 if(modelid==earthid)femmodel->parameters->AddObject(new IntVecParam(IcecapToEarthCommEnum, fromicecomms,nummodels-1));101 if(modelid==earthid)femmodel->parameters->AddObject(new IntVecParam(IcecapToEarthCommEnum,(int*)fromicecomms,nummodels-1)); 102 102 else femmodel->parameters->AddObject(new IntParam(IcecapToEarthCommEnum,toearthcomm)); 103 103
Note:
See TracChangeset
for help on using the changeset viewer.