- Timestamp:
- 05/04/23 17:45:09 (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Cfsurfacesquaretransient.cpp
r27721 r27728 159 159 /*Check that we have not yet calculated this cost function*/ 160 160 if(this->passedflags[pos]){ 161 return 0.; 162 //return this->J; //FIXME 161 return this->J; 163 162 } 164 163 … … 172 171 /*Sum across partition*/ 173 172 IssmDouble J_sum; 174 ISSM_MPI_Allreduce( 173 ISSM_MPI_Allreduce((void*)&J_part,(void*)&J_sum,1,ISSM_MPI_DOUBLE,ISSM_MPI_SUM,IssmComm::GetComm()); 175 174 ISSM_MPI_Bcast(&J_sum,1,ISSM_MPI_DOUBLE,0,IssmComm::GetComm()); 176 175 … … 180 179 181 180 /*Return full cost function this far*/ 182 //return this->J; //FIXME 183 return J_sum; 181 return this->J; 184 182 }/*}}}*/ 185 183 IssmDouble Cfsurfacesquaretransient::Cfsurfacesquaretransient_Calculation(Element* element, int model_enum){/*{{{*/
Note:
See TracChangeset
for help on using the changeset viewer.