- Timestamp:
- 03/03/20 12:19:15 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/modules/ConstraintsStatex/RiftConstraintsState.cpp
r24623 r24630 6 6 7 7 /*current module: */ 8 /*RiftIsPresent(Loads* loads,int configuration_type){{{*/9 int RiftIsPresent(Loads* loads,int configuration_type){10 11 int i;12 13 int found=0;14 int mpi_found=0;15 16 /*go though loads, and figure out if one of the loads is a Riftfront: */17 for (i=0;i<loads->Size();i++){18 Load* load=(Load*)loads->GetObjectByOffset(i);19 if(RiftfrontEnum==loads->GetEnum(i)){20 found=1;21 break;22 }23 }24 25 ISSM_MPI_Reduce (&found,&mpi_found,1,ISSM_MPI_INT,ISSM_MPI_SUM,0,IssmComm::GetComm() );26 ISSM_MPI_Bcast(&mpi_found,1,ISSM_MPI_INT,0,IssmComm::GetComm());27 found=mpi_found;28 29 return found;30 }31 /*}}}*/32 8 /*RiftConstraintsState(int* pconverged, int* pnum_unstable_constraints,Loads* loads,int min_mechanical_constraints,int configuration_type){{{*/ 33 9 void RiftConstraintsState(int* pconverged, int* pnum_unstable_constraints,Loads* loads,int min_mechanical_constraints,int configuration_type){
Note:
See TracChangeset
for help on using the changeset viewer.