Changeset 20345


Ignore:
Timestamp:
03/24/16 14:45:13 (9 years ago)
Author:
Eric.Larour
Message:

CHG: no need for eustatic boolean anymore, it's default.
Added a GenericParam container to IssmComm, otherwise, we have issues with gcc and intel compilers when adding comms
as IntParam objects in the parameters container.

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

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/analyses/SealevelriseAnalysis.cpp

    r20155 r20345  
    6565        parameters->AddObject(iomodel->CopyConstantObject(SealevelriseRigidEnum));
    6666        parameters->AddObject(iomodel->CopyConstantObject(SealevelriseElasticEnum));
    67         parameters->AddObject(iomodel->CopyConstantObject(SealevelriseEustaticEnum));
    6867
    6968        iomodel->FetchData(&elastic,SealevelriseElasticEnum);
  • issm/trunk-jpl/src/c/classes/FemModel.cpp

    r20276 r20345  
    7979
    8080        /*Save communicator in the parameters dataset: */
    81         this->parameters->AddObject(new IntParam(FemModelCommEnum,incomm));
     81        this->parameters->AddObject(new GenericParam<ISSM_MPI_Comm>(incomm,FemModelCommEnum));
     82
    8283
    8384        /*Free resources */
     
    104105       
    105106        /*Save communicator in the parameters dataset: */
    106         this->parameters->AddObject(new IntParam(FemModelCommEnum,incomm));
     107        this->parameters->AddObject(new GenericParam<ISSM_MPI_Comm>(incomm,FemModelCommEnum));
    107108
    108109}
     
    23242325        ISSM_MPI_Reduce (&oceanarea_cpu,&oceanarea,1,ISSM_MPI_DOUBLE,ISSM_MPI_SUM,0,IssmComm::GetComm() );
    23252326        ISSM_MPI_Bcast(&oceanarea,1,ISSM_MPI_DOUBLE,0,IssmComm::GetComm());
    2326        
     2327
    23272328        ISSM_MPI_Reduce (&eartharea_cpu,&eartharea,1,ISSM_MPI_DOUBLE,ISSM_MPI_SUM,0,IssmComm::GetComm() );
    23282329        ISSM_MPI_Bcast(&eartharea,1,ISSM_MPI_DOUBLE,0,IssmComm::GetComm());
     
    26022603       
    26032604        /*Save communicator in the parameters dataset: */
    2604         this->parameters->AddObject(new IntParam(FemModelCommEnum,incomm));
     2605        this->parameters->AddObject(new GenericParam<ISSM_MPI_Comm>(incomm,FemModelCommEnum));
    26052606
    26062607}
Note: See TracChangeset for help on using the changeset viewer.