Changeset 20348


Ignore:
Timestamp:
03/24/16 14:47:22 (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/cores/sealevelrise_core.cpp

    r20235 r20348  
    5656                Sg_eustatic=sealevelrise_core_eustatic(femmodel); //generalized eustatic (Farrel and Clark, Eq 4, 1st, 3rd and 4rd terms on the RHS.
    5757
    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)
    5959
    6060                /*get results into elements:*/
     
    109109       
    110110        /*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        }
    113121
    114122        /*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.