Changeset 21226


Ignore:
Timestamp:
09/23/16 13:38:44 (8 years ago)
Author:
Eric.Larour
Message:

CHG: updated the sealevelrise_core transfer of slr back from the earth to the icecaps. The generic param template
was not being used to retrieve the MPI comms.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/cores/sealevelrise_core.cpp

    r20999 r21226  
    283283       
    284284        /*retrieve the inter communicators that will be used to send data from earth to ice caps:*/
    285         if(modelid==earthid)femmodel->parameters->FindParam((int**)(&tocomms),&numcoms,IcecapToEarthCommEnum);
    286         else femmodel->parameters->FindParam((int*)(&fromcomm), IcecapToEarthCommEnum);
     285        if(modelid==earthid){
     286                GenericParam<ISSM_MPI_Comm*>* parcoms = dynamic_cast<GenericParam<ISSM_MPI_Comm*>*>(femmodel->parameters->FindParamObject(IcecapToEarthCommEnum));
     287                if(!parcoms)_error_("TransferSealevel error message: could not find IcecapToEarthComm communicator");
     288                tocomms=parcoms->GetParameterValue();
     289                //femmodel->parameters->FindParam((int**)(&tocomms),&numcoms,IcecapToEarthCommEnum);
     290        }
     291        else{
     292                GenericParam<ISSM_MPI_Comm>* parcom = dynamic_cast<GenericParam<ISSM_MPI_Comm>*>(femmodel->parameters->FindParamObject(IcecapToEarthCommEnum));
     293                if(!parcom)_error_("TransferSealevel error message: could not find IcecapToEarthComm communicator");
     294                fromcomm=parcom->GetParameterValue();
     295                //femmodel->parameters->FindParam((int*)(&fromcomm), IcecapToEarthCommEnum);
     296        }
    287297
    288298
Note: See TracChangeset for help on using the changeset viewer.