Changeset 20348
- Timestamp:
- 03/24/16 14:47:22 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/cores/sealevelrise_core.cpp
r20235 r20348 56 56 Sg_eustatic=sealevelrise_core_eustatic(femmodel); //generalized eustatic (Farrel and Clark, Eq 4, 1st, 3rd and 4rd terms on the RHS. 57 57 58 Sg=sealevelrise_core_noneustatic(femmodel,Sg_eustatic); // sea-level rise dependent terms (2nd and 5th terms on the RHS)58 Sg=sealevelrise_core_noneustatic(femmodel,Sg_eustatic); //ocean loading tems (2nd and 5th terms on the RHS of Farrel and Clark) 59 59 60 60 /*get results into elements:*/ … … 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((int**)(&fromcomms),&nv,IcecapToEarthCommEnum); 112 else femmodel->parameters->FindParam((int*)(&tocomm), IcecapToEarthCommEnum); 111 if(modelid==earthid){ 112 GenericParam<ISSM_MPI_Comm*>* parcoms = dynamic_cast<GenericParam<ISSM_MPI_Comm*>*>(femmodel->parameters->FindParamObject(IcecapToEarthCommEnum)); 113 if(!parcoms)_error_("TransferForcing error message: could not find IcecapToEarthComm communicator"); 114 fromcomms=parcoms->GetParameterValue(); 115 } 116 else { 117 GenericParam<ISSM_MPI_Comm>* parcom = dynamic_cast<GenericParam<ISSM_MPI_Comm>*>(femmodel->parameters->FindParamObject(IcecapToEarthCommEnum)); 118 if(!parcom)_error_("TransferForcing error message: could not find IcecapToEarthComm communicator"); 119 tocomm=parcom->GetParameterValue(); 120 } 113 121 114 122 /*For each icecap, retrieve the forcing vector that will be sent to the earth model: */
Note:
See TracChangeset
for help on using the changeset viewer.