Changeset 3497 for palm/trunk/SOURCE
- Timestamp:
- Nov 6, 2018 5:15:18 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/plant_canopy_model_mod.f90
r3467 r3497 22 22 ! Current revisions: 23 23 ! ------------------ 24 ! 24 ! Remove write statement. 25 25 ! 26 26 ! Former revisions: … … 1079 1079 1080 1080 CALL exchange_horiz_2d_int( pch_index_ji, nys, nyn, nxl, nxr, nbgp ) 1081 1081 ! 1082 1082 !-- Calculate global pch_index value (index of top of plant canopy from ground) 1083 pch_index = MAXVAL(pch_index_ji) 1083 pch_index = MAXVAL( pch_index_ji ) 1084 ! 1084 1085 !-- Exchange pch_index from all processors 1085 1086 #if defined( __parallel ) 1086 CALL MPI_Allreduce(MPI_IN_PLACE, pch_index, 1, MPI_INTEGER, MPI_MAX, comm2d, ierr) 1087 IF ( ierr /= 0 ) THEN 1088 WRITE (9,*) 'Error MPI_Allreduce pch_index:', ierr 1089 FLUSH(9) 1090 ENDIF 1087 CALL MPI_ALLREDUCE( MPI_IN_PLACE, pch_index, 1, MPI_INTEGER, & 1088 MPI_MAX, comm2d, ierr) 1091 1089 #endif 1092 1090
Note: See TracChangeset
for help on using the changeset viewer.