Changeset 2801 for palm/trunk/SOURCE/lpm_write_exchange_statistics.f90
- Timestamp:
- Feb 14, 2018 4:01:55 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/lpm_write_exchange_statistics.f90
r2718 r2801 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Introduce particle transfer in nested models. 28 ! 29 ! 2718 2018-01-02 08:49:38Z maronga 27 30 ! Corrected "Former revisions" section 28 31 ! … … 69 72 SUBROUTINE lpm_write_exchange_statistics 70 73 74 USE MPI 71 75 72 76 USE control_parameters, & … … 82 86 trsp_count_sum, trsp_count_recv_sum 83 87 88 USE pmc_particle_interface, & 89 ONLY: pmcp_g_print_number_of_particles 90 84 91 USE pegrid 85 92 … … 89 96 INTEGER(iwp) :: jp !< 90 97 INTEGER(iwp) :: kp !< 98 INTEGER(iwp) :: tot_number_of_particles 99 100 91 101 92 102 ! … … 110 120 trsp_count_recv_sum, pnorth, trnp_count_sum, & 111 121 trnp_count_recv_sum 112 CALL close_file( 80 )113 122 #else 114 123 WRITE ( 80, 8000 ) current_timestep_number+1, simulated_time+dt_3d, & 115 124 number_of_particles 116 125 #endif 126 CALL close_file( 80 ) 127 128 IF ( number_of_particles > 0 ) THEN 129 WRITE(9,*) 'number_of_particles ', number_of_particles, current_timestep_number + 1, simulated_time + dt_3d 130 ENDIF 131 132 #if defined( __parallel ) 133 CALL MPI_ALLREDUCE( number_of_particles, tot_number_of_particles, 1, MPI_INTEGER, & 134 MPI_SUM, comm2d, ierr) 135 #else 136 tot_number_of_particles = number_of_particles 137 #endif 138 139 CALL pmcp_g_print_number_of_particles (simulated_time+dt_3d, tot_number_of_particles) 117 140 118 141 !
Note: See TracChangeset
for help on using the changeset viewer.