Changeset 2803 for palm/trunk/SOURCE/pmc_interface_mod.f90
- Timestamp:
- Feb 14, 2018 4:56:32 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/pmc_interface_mod.f90
r2801 r2803 20 20 ! Current revisions: 21 21 ! ------------------ 22 ! 22 ! preprocessor directive for c_sizeof in case of __gfortran added 23 23 ! 24 24 ! Former revisions: … … 217 217 ! routine 218 218 ! @todo Data transfer of qc and nc is prepared but not activated 219 ! @todo determine c_sizeof(childgrid(1)) for gfortran 219 220 !------------------------------------------------------------------------------! 220 221 MODULE pmc_interface … … 921 922 922 923 CALL MPI_BCAST( nz_cl, 1, MPI_INTEGER, 0, comm2d, ierr ) 924 #if defined( __gfortran ) 925 ! 926 !-- For the gfortran compiler the function c_sizeof produces strange erros 927 !-- which can probably be attributed to an error in the gfortran compiler. 928 !-- Therefore the particle size in bytes is set manually. Attention: A 929 !-- change of the size of the particle type requires an adjustment of 930 !-- this value 931 !-- TODO: determine c_sizeof(childgrid(1)) as gfortran can not handle the 932 !-- function 933 #else 934 ! 935 !-- This MPI_SENDRECV should work even with odd mixture on 32 and 64 Bit 936 !-- variables in structure particle_type (due to the calculation of par_size). 937 !-- Please note, in case of 1D decomposition ( only 1 core along 938 !-- x dimension), array trlp is not allocated, leading to program crash. 939 !-- Hence, check if array is allocated and allocate it temporarily if 940 !-- if required. 923 941 CALL MPI_BCAST( childgrid(m), c_sizeof(childgrid(1)), MPI_BYTE, 0, comm2d, ierr ) 942 #endif 924 943 925 944 !
Note: See TracChangeset
for help on using the changeset viewer.