Changeset 2967 for palm/trunk/SOURCE/lpm_write_exchange_statistics.f90
- Timestamp:
- Apr 13, 2018 11:22:08 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/lpm_write_exchange_statistics.f90
r2841 r2967 25 25 ! ----------------- 26 26 ! $Id$ 27 ! nesting routine is only called if nesting is switched on 28 ! bugfix: missing parallel cpp-directives added 29 ! 30 ! 2841 2018-02-27 15:02:57Z knoop 27 31 ! Bugfix: wrong placement of include 'mpif.h' corrected, 28 32 ! kinds module added and pegrid module scope restricted … … 76 80 SUBROUTINE lpm_write_exchange_statistics 77 81 78 #if !defined( __mpifh )82 #if defined( __parallel ) && !defined( __mpifh ) 79 83 USE MPI 80 84 #endif … … 100 104 ONLY: comm2d, ierr, pleft, pright, psouth, pnorth 101 105 106 USE pmc_interface, & 107 ONLY: nested_run 108 102 109 IMPLICIT NONE 103 110 104 #if defined( __ mpifh )111 #if defined( __parallel ) && defined( __mpifh ) 105 112 INCLUDE "mpif.h" 106 113 #endif … … 140 147 141 148 IF ( number_of_particles > 0 ) THEN 142 WRITE(9,*) 'number_of_particles ', number_of_particles, current_timestep_number + 1, simulated_time + dt_3d 149 WRITE(9,*) 'number_of_particles ', number_of_particles, & 150 current_timestep_number + 1, simulated_time + dt_3d 143 151 ENDIF 144 152 145 153 #if defined( __parallel ) 146 CALL MPI_ALLREDUCE( number_of_particles, tot_number_of_particles, 1, MPI_INTEGER,&147 MPI_SUM, comm2d, ierr)154 CALL MPI_ALLREDUCE( number_of_particles, tot_number_of_particles, 1, & 155 MPI_INTEGER, MPI_SUM, comm2d, ierr ) 148 156 #else 149 157 tot_number_of_particles = number_of_particles 150 158 #endif 151 159 152 CALL pmcp_g_print_number_of_particles (simulated_time+dt_3d, tot_number_of_particles) 160 IF ( nested_run ) THEN 161 CALL pmcp_g_print_number_of_particles( simulated_time+dt_3d, & 162 tot_number_of_particles) 163 ENDIF 153 164 154 165 !
Note: See TracChangeset
for help on using the changeset viewer.