Changeset 20235


Ignore:
Timestamp:
02/24/16 13:15:58 (9 years ago)
Author:
schlegel
Message:

CHG: add int cast to make intel compiler happy

Location:
issm/trunk-jpl/src/c
Files:
2 edited

Legend:

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

    r20203 r20235  
    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(&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);
    113113
    114114        /*For each icecap, retrieve the forcing vector that will be sent to the earth model: */
     
    228228       
    229229        /*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);
    232232
    233233
  • issm/trunk-jpl/src/c/main/issm_slr.cpp

    r20204 r20235  
    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,fromicecomms,nummodels-1));
     101        if(modelid==earthid)femmodel->parameters->AddObject(new IntVecParam(IcecapToEarthCommEnum,(int*)fromicecomms,nummodels-1));
    102102        else femmodel->parameters->AddObject(new IntParam(IcecapToEarthCommEnum,toearthcomm));
    103103
Note: See TracChangeset for help on using the changeset viewer.