30subroutine mpp_init( flags, localcomm, test_level, alt_input_nml_path )
31 integer,
optional,
intent(in) :: flags
32 integer,
optional,
intent(in) :: localcomm
33 integer,
optional,
intent(in) :: test_level
35 character(len=*),
optional,
intent(in) :: alt_input_nml_path
36 integer :: my_pe, num_pes, len, i, logunit
37 logical :: opened, existed
41 if( module_is_initialized )
return
43 module_is_initialized = .true.
44 if(
present(test_level))
then
49 if(t_level == 0)
return
58 allocate( peset(0)%list(1) )
63 current_peset_num = world_peset_num
64 if(t_level == 1)
return
67 call system_clock( count=tick0, count_rate=ticks_per_sec, count_max=max_ticks )
68 tick_rate = 1./ticks_per_sec
69 clock0 = mpp_clock_id(
'Total runtime', flags=mpp_clock_sync )
70 if(t_level == 2)
return
74 datatypes%head => null()
75 datatypes%tail => null()
82 allocate(mpp_byte%sizes(0))
83 allocate(mpp_byte%subsizes(0))
84 allocate(mpp_byte%starts(0))
88 mpp_byte%prev => null()
89 mpp_byte%next => null()
91 if(
PRESENT(flags) )
then
92 debug = flags.EQ.mpp_debug
93 verbose = flags.EQ.mpp_verbose .OR. debug
95 if(t_level == 3)
return
97 call mpp_init_logfile()
98 if (
present(alt_input_nml_path))
then
99 call read_input_nml(alt_input_nml_path=alt_input_nml_path)
103 if(t_level == 4)
return
106 read (input_nml_file, mpp_nml, iostat=io_status)
107 if (io_status > 0)
then
108 call mpp_error(fatal,
'=>mpp_init: Error reading mpp_nml')
110 if(t_level == 5)
return
113 if (trim(etcfile) /=
'/dev/null')
then
114 write( etcfile,
'(a,i6.6)' )trim(etcfile)//
'.', pe
116 inquire(file=etcfile, exist=existed)
118 open( newunit=etc_unit, file=trim(etcfile), status=
'REPLACE' )
120 open( newunit=etc_unit, file=trim(etcfile) )
124 if( verbose )
call mpp_error( note,
'MPP_INIT: initializing MPP module...' )
125 if( pe.EQ.root_pe )
then
127 write( logunit,
'(/a)' )
'MPP module '//trim(version)
128 write( logunit,
'(a,i6)' )
'MPP started with NPES=', npes
129 write( logunit,
'(a)' )
'Using no library for message passing...'
130 write( logunit,
'(a26,es12.4,a6,i10,a11)' ) &
131 'Realtime clock resolution=', tick_rate,
' sec (', ticks_per_sec,
' ticks/sec)'
132 write( logunit,
'(a23,es12.4,a6,i20,a7)' ) &
133 'Clock rolls over after ', max_ticks*tick_rate,
' sec (', max_ticks,
' ticks)'
136 call mpp_clock_begin(clock0)
139end subroutine mpp_init
144 integer :: i, j, k, n, nmax, istat, out_unit
145 real :: t, tmin, tmax, tavg, tstd
146 real :: m, mmin, mmax, mavg, mstd, t_total
149 if( .NOT.module_is_initialized )
return
150 call mpp_set_current_pelist()
151 call mpp_clock_end(clock0)
152 t_total = clocks(clock0)%total_ticks*tick_rate
154 if( clock_num.GT.0 )
then
155 if( any(clocks(1:clock_num)%detailed) )
then
156 call sum_clock_data;
call dump_clock_summary
158 if( pe.EQ.root_pe )
then
159 write( out_unit,
'(/a,i6,a)' )
'Tabulating mpp_clock statistics across ', npes,
' PEs...'
160 if( any(clocks(1:clock_num)%detailed) ) &
161 write( out_unit,
'(a)' )
' ... see mpp_clock.out.#### for details on individual PEs.'
162 write( out_unit,
'(/32x,a)' ) &
163 &
' hits tmin tmax tavg tstd tfrac grain pemin pemax'
165 write( out_unit,
'(/37x,a)' )
'time'
167 call flush( out_unit )
170 if( .NOT.any(peset(clocks(i)%peset_num)%list(:).EQ.pe) )cycle
171 call mpp_set_current_pelist( peset(clocks(i)%peset_num)%list )
173 t = clocks(i)%total_ticks*tick_rate
174 tmin = t;
call mpp_min(tmin)
175 tmax = t;
call mpp_max(tmax)
176 tavg = t;
call mpp_sum(tavg); tavg = tavg/mpp_npes()
177 tstd = (t-tavg)**2;
call mpp_sum(tstd); tstd = sqrt( tstd/mpp_npes() )
178 if( pe.EQ.root_pe )
write( out_unit,
'(a32,i10,4f14.6,f7.3,3i6)' ) &
179 clocks(i)%name, clocks(i)%hits, tmin, tmax, tavg, tstd, tavg/t_total, &
180 clocks(i)%grain, minval(peset(clocks(i)%peset_num)%list), &
181 maxval(peset(clocks(i)%peset_num)%list)
182 if (pe.NE.root_pe)
write(out_unit,
'(a32,f14.6)') clocks(i)%name, clocks(i)%total_ticks*tick_rate
184 if( any(clocks(1:clock_num)%detailed) .AND. pe.EQ.root_pe )
write( out_unit,
'(/32x,a)' ) &
185 ' tmin tmax tavg tstd mmin mmax mavg mstd mavg/tavg'
189 if( .NOT.clocks(i)%detailed )cycle
190 do j = 1,max_event_types
191 n = clocks(i)%events(j)%calls; nmax = n
196 if( n.GT.0 )m = sum(clocks(i)%events(j)%bytes(1:n))
197 mmin = m;
call mpp_min(mmin)
198 mmax = m;
call mpp_max(mmax)
199 mavg = m;
call mpp_sum(mavg); mavg = mavg/mpp_npes()
200 mstd = (m-mavg)**2;
call mpp_sum(mstd); mstd = sqrt( mstd/mpp_npes() )
202 if( n.GT.0 )t = sum(clocks(i)%events(j)%ticks(1:n))*tick_rate
203 tmin = t;
call mpp_min(tmin)
204 tmax = t;
call mpp_max(tmax)
205 tavg = t;
call mpp_sum(tavg); tavg = tavg/mpp_npes()
206 tstd = (t-tavg)**2;
call mpp_sum(tstd); tstd = sqrt( tstd/mpp_npes() )
207 if( pe.EQ.root_pe )
write( out_unit,
'(a32,4f11.3,5es11.3)' ) &
208 trim(clocks(i)%name)//
' '//trim(clocks(i)%events(j)%name), &
209 tmin, tmax, tavg, tstd, mmin, mmax, mavg, mstd, mavg/tavg
215 inquire(unit=etc_unit, opened=opened)
217 call flush (etc_unit)
221 call mpp_set_current_pelist()
223 call mpp_max(mpp_stack_hwm)
224 if( pe.EQ.root_pe )
write( out_unit,* )
'MPP_STACK high water mark=', mpp_stack_hwm
227end subroutine mpp_exit
231 subroutine mpp_set_stack_size(n)
232 integer,
intent(in) :: n
233 character(len=8) :: text
235 if( n.GT.mpp_stack_size .AND.
allocated(mpp_stack) )
deallocate(mpp_stack)
236 if( .NOT.
allocated(mpp_stack) )
then
237 allocate( mpp_stack(n) )
241 write( text,
'(i8)' )n
242 if( pe.EQ.root_pe )
call mpp_error( note,
'MPP_SET_STACK_SIZE: stack size set to '//text//
'.' )
245 end subroutine mpp_set_stack_size
247 subroutine mpp_broadcast_char(char_data, length, from_pe, pelist )
248 character(len=*),
intent(inout) :: char_data(:)
249 integer,
intent(in) :: length, from_pe
250 integer,
intent(in),
optional :: pelist(:)
252 if( .NOT.module_is_initialized )
call mpp_error( fatal,
'mpp_broadcast_text: You must first call mpp_init.' )
254 end subroutine mpp_broadcast_char
264#define MPP_TYPE_INIT_VALUE 0.
267#define MPP_TRANSMIT_ mpp_transmit_real8
268#undef MPP_TRANSMIT_SCALAR_
269#define MPP_TRANSMIT_SCALAR_ mpp_transmit_real8_scalar
270#undef MPP_TRANSMIT_2D_
271#define MPP_TRANSMIT_2D_ mpp_transmit_real8_2d
272#undef MPP_TRANSMIT_3D_
273#define MPP_TRANSMIT_3D_ mpp_transmit_real8_3d
274#undef MPP_TRANSMIT_4D_
275#define MPP_TRANSMIT_4D_ mpp_transmit_real8_4d
276#undef MPP_TRANSMIT_5D_
277#define MPP_TRANSMIT_5D_ mpp_transmit_real8_5d
279#define MPP_RECV_ mpp_recv_real8
280#undef MPP_RECV_SCALAR_
281#define MPP_RECV_SCALAR_ mpp_recv_real8_scalar
283#define MPP_RECV_2D_ mpp_recv_real8_2d
285#define MPP_RECV_3D_ mpp_recv_real8_3d
287#define MPP_RECV_4D_ mpp_recv_real8_4d
289#define MPP_RECV_5D_ mpp_recv_real8_5d
291#define MPP_SEND_ mpp_send_real8
292#undef MPP_SEND_SCALAR_
293#define MPP_SEND_SCALAR_ mpp_send_real8_scalar
295#define MPP_SEND_2D_ mpp_send_real8_2d
297#define MPP_SEND_3D_ mpp_send_real8_3d
299#define MPP_SEND_4D_ mpp_send_real8_4d
301#define MPP_SEND_5D_ mpp_send_real8_5d
303#define MPP_BROADCAST_ mpp_broadcast_real8
304#undef MPP_BROADCAST_SCALAR_
305#define MPP_BROADCAST_SCALAR_ mpp_broadcast_real8_scalar
306#undef MPP_BROADCAST_2D_
307#define MPP_BROADCAST_2D_ mpp_broadcast_real8_2d
308#undef MPP_BROADCAST_3D_
309#define MPP_BROADCAST_3D_ mpp_broadcast_real8_3d
310#undef MPP_BROADCAST_4D_
311#define MPP_BROADCAST_4D_ mpp_broadcast_real8_4d
312#undef MPP_BROADCAST_5D_
313#define MPP_BROADCAST_5D_ mpp_broadcast_real8_5d
315#define MPP_SCATTERV_ mpp_scatterv_real8
317#define MPP_GATHER_ mpp_gather_real8
319#define MPP_GATHERV_ mpp_gatherv_real8
321#define MPP_TYPE_ real(r8_kind)
322#undef MPP_TYPE_BYTELEN_
323#define MPP_TYPE_BYTELEN_ 8
325#define MPI_TYPE_ MPI_REAL8
326#include <mpp_transmit_nocomm.fh>
330#define MPP_TRANSMIT_ mpp_transmit_cmplx8
331#undef MPP_TRANSMIT_SCALAR_
332#define MPP_TRANSMIT_SCALAR_ mpp_transmit_cmplx8_scalar
333#undef MPP_TRANSMIT_2D_
334#define MPP_TRANSMIT_2D_ mpp_transmit_cmplx8_2d
335#undef MPP_TRANSMIT_3D_
336#define MPP_TRANSMIT_3D_ mpp_transmit_cmplx8_3d
337#undef MPP_TRANSMIT_4D_
338#define MPP_TRANSMIT_4D_ mpp_transmit_cmplx8_4d
339#undef MPP_TRANSMIT_5D_
340#define MPP_TRANSMIT_5D_ mpp_transmit_cmplx8_5d
342#define MPP_RECV_ mpp_recv_cmplx8
343#undef MPP_RECV_SCALAR_
344#define MPP_RECV_SCALAR_ mpp_recv_cmplx8_scalar
346#define MPP_RECV_2D_ mpp_recv_cmplx8_2d
348#define MPP_RECV_3D_ mpp_recv_cmplx8_3d
350#define MPP_RECV_4D_ mpp_recv_cmplx8_4d
352#define MPP_RECV_5D_ mpp_recv_cmplx8_5d
354#define MPP_SEND_ mpp_send_cmplx8
355#undef MPP_SEND_SCALAR_
356#define MPP_SEND_SCALAR_ mpp_send_cmplx8_scalar
358#define MPP_SEND_2D_ mpp_send_cmplx8_2d
360#define MPP_SEND_3D_ mpp_send_cmplx8_3d
362#define MPP_SEND_4D_ mpp_send_cmplx8_4d
364#define MPP_SEND_5D_ mpp_send_cmplx8_5d
366#define MPP_BROADCAST_ mpp_broadcast_cmplx8
367#undef MPP_BROADCAST_SCALAR_
368#define MPP_BROADCAST_SCALAR_ mpp_broadcast_cmplx8_scalar
369#undef MPP_BROADCAST_2D_
370#define MPP_BROADCAST_2D_ mpp_broadcast_cmplx8_2d
371#undef MPP_BROADCAST_3D_
372#define MPP_BROADCAST_3D_ mpp_broadcast_cmplx8_3d
373#undef MPP_BROADCAST_4D_
374#define MPP_BROADCAST_4D_ mpp_broadcast_cmplx8_4d
375#undef MPP_BROADCAST_5D_
376#define MPP_BROADCAST_5D_ mpp_broadcast_cmplx8_5d
378#define MPP_SCATTERV_ mpp_scatterv_cmplx8
380#define MPP_GATHER_ mpp_gather_cmplx8
382#define MPP_GATHERV_ mpp_gatherv_cmplx8
384#define MPP_TYPE_ complex(c8_kind)
385#undef MPP_TYPE_BYTELEN_
386#define MPP_TYPE_BYTELEN_ 16
388#define MPI_TYPE_ MPI_DOUBLE_COMPLEX
389#include <mpp_transmit_nocomm.fh>
393#define MPP_TRANSMIT_ mpp_transmit_real4
394#undef MPP_TRANSMIT_SCALAR_
395#define MPP_TRANSMIT_SCALAR_ mpp_transmit_real4_scalar
396#undef MPP_TRANSMIT_2D_
397#define MPP_TRANSMIT_2D_ mpp_transmit_real4_2d
398#undef MPP_TRANSMIT_3D_
399#define MPP_TRANSMIT_3D_ mpp_transmit_real4_3d
400#undef MPP_TRANSMIT_4D_
401#define MPP_TRANSMIT_4D_ mpp_transmit_real4_4d
402#undef MPP_TRANSMIT_5D_
403#define MPP_TRANSMIT_5D_ mpp_transmit_real4_5d
405#define MPP_RECV_ mpp_recv_real4
406#undef MPP_RECV_SCALAR_
407#define MPP_RECV_SCALAR_ mpp_recv_real4_scalar
409#define MPP_RECV_2D_ mpp_recv_real4_2d
411#define MPP_RECV_3D_ mpp_recv_real4_3d
413#define MPP_RECV_4D_ mpp_recv_real4_4d
415#define MPP_RECV_5D_ mpp_recv_real4_5d
417#define MPP_SEND_ mpp_send_real4
418#undef MPP_SEND_SCALAR_
419#define MPP_SEND_SCALAR_ mpp_send_real4_scalar
421#define MPP_SEND_2D_ mpp_send_real4_2d
423#define MPP_SEND_3D_ mpp_send_real4_3d
425#define MPP_SEND_4D_ mpp_send_real4_4d
427#define MPP_SEND_5D_ mpp_send_real4_5d
429#define MPP_BROADCAST_ mpp_broadcast_real4
430#undef MPP_BROADCAST_SCALAR_
431#define MPP_BROADCAST_SCALAR_ mpp_broadcast_real4_scalar
432#undef MPP_BROADCAST_2D_
433#define MPP_BROADCAST_2D_ mpp_broadcast_real4_2d
434#undef MPP_BROADCAST_3D_
435#define MPP_BROADCAST_3D_ mpp_broadcast_real4_3d
436#undef MPP_BROADCAST_4D_
437#define MPP_BROADCAST_4D_ mpp_broadcast_real4_4d
438#undef MPP_BROADCAST_5D_
439#define MPP_BROADCAST_5D_ mpp_broadcast_real4_5d
441#define MPP_SCATTERV_ mpp_scatterv_real4
443#define MPP_GATHER_ mpp_gather_real4
445#define MPP_GATHERV_ mpp_gatherv_real4
447#define MPP_TYPE_ real(r4_kind)
448#undef MPP_TYPE_BYTELEN_
449#define MPP_TYPE_BYTELEN_ 4
451#define MPI_TYPE_ MPI_REAL4
452#include <mpp_transmit_nocomm.fh>
456#define MPP_TRANSMIT_ mpp_transmit_cmplx4
457#undef MPP_TRANSMIT_SCALAR_
458#define MPP_TRANSMIT_SCALAR_ mpp_transmit_cmplx4_scalar
459#undef MPP_TRANSMIT_2D_
460#define MPP_TRANSMIT_2D_ mpp_transmit_cmplx4_2d
461#undef MPP_TRANSMIT_3D_
462#define MPP_TRANSMIT_3D_ mpp_transmit_cmplx4_3d
463#undef MPP_TRANSMIT_4D_
464#define MPP_TRANSMIT_4D_ mpp_transmit_cmplx4_4d
465#undef MPP_TRANSMIT_5D_
466#define MPP_TRANSMIT_5D_ mpp_transmit_cmplx4_5d
468#define MPP_RECV_ mpp_recv_cmplx4
469#undef MPP_RECV_SCALAR_
470#define MPP_RECV_SCALAR_ mpp_recv_cmplx4_scalar
472#define MPP_RECV_2D_ mpp_recv_cmplx4_2d
474#define MPP_RECV_3D_ mpp_recv_cmplx4_3d
476#define MPP_RECV_4D_ mpp_recv_cmplx4_4d
478#define MPP_RECV_5D_ mpp_recv_cmplx4_5d
480#define MPP_SEND_ mpp_send_cmplx4
481#undef MPP_SEND_SCALAR_
482#define MPP_SEND_SCALAR_ mpp_send_cmplx4_scalar
484#define MPP_SEND_2D_ mpp_send_cmplx4_2d
486#define MPP_SEND_3D_ mpp_send_cmplx4_3d
488#define MPP_SEND_4D_ mpp_send_cmplx4_4d
490#define MPP_SEND_5D_ mpp_send_cmplx4_5d
492#define MPP_BROADCAST_ mpp_broadcast_cmplx4
493#undef MPP_BROADCAST_SCALAR_
494#define MPP_BROADCAST_SCALAR_ mpp_broadcast_cmplx4_scalar
495#undef MPP_BROADCAST_2D_
496#define MPP_BROADCAST_2D_ mpp_broadcast_cmplx4_2d
497#undef MPP_BROADCAST_3D_
498#define MPP_BROADCAST_3D_ mpp_broadcast_cmplx4_3d
499#undef MPP_BROADCAST_4D_
500#define MPP_BROADCAST_4D_ mpp_broadcast_cmplx4_4d
501#undef MPP_BROADCAST_5D_
502#define MPP_BROADCAST_5D_ mpp_broadcast_cmplx4_5d
504#define MPP_SCATTERV_ mpp_scatterv_cmplx4
506#define MPP_GATHER_ mpp_gather_cmplx4
508#define MPP_GATHERV_ mpp_gatherv_cmplx4
510#define MPP_TYPE_ complex(c4_kind)
511#undef MPP_TYPE_BYTELEN_
512#define MPP_TYPE_BYTELEN_ 8
514#define MPI_TYPE_ MPI_COMPLEX
515#include <mpp_transmit_nocomm.fh>
518#undef MPP_TYPE_INIT_VALUE
519#define MPP_TYPE_INIT_VALUE 0
521#define MPP_TRANSMIT_ mpp_transmit_int8
522#undef MPP_TRANSMIT_SCALAR_
523#define MPP_TRANSMIT_SCALAR_ mpp_transmit_int8_scalar
524#undef MPP_TRANSMIT_2D_
525#define MPP_TRANSMIT_2D_ mpp_transmit_int8_2d
526#undef MPP_TRANSMIT_3D_
527#define MPP_TRANSMIT_3D_ mpp_transmit_int8_3d
528#undef MPP_TRANSMIT_4D_
529#define MPP_TRANSMIT_4D_ mpp_transmit_int8_4d
530#undef MPP_TRANSMIT_5D_
531#define MPP_TRANSMIT_5D_ mpp_transmit_int8_5d
533#define MPP_RECV_ mpp_recv_int8
534#undef MPP_RECV_SCALAR_
535#define MPP_RECV_SCALAR_ mpp_recv_int8_scalar
537#define MPP_RECV_2D_ mpp_recv_int8_2d
539#define MPP_RECV_3D_ mpp_recv_int8_3d
541#define MPP_RECV_4D_ mpp_recv_int8_4d
543#define MPP_RECV_5D_ mpp_recv_int8_5d
545#define MPP_SEND_ mpp_send_int8
546#undef MPP_SEND_SCALAR_
547#define MPP_SEND_SCALAR_ mpp_send_int8_scalar
549#define MPP_SEND_2D_ mpp_send_int8_2d
551#define MPP_SEND_3D_ mpp_send_int8_3d
553#define MPP_SEND_4D_ mpp_send_int8_4d
555#define MPP_SEND_5D_ mpp_send_int8_5d
557#define MPP_BROADCAST_ mpp_broadcast_int8
558#undef MPP_BROADCAST_SCALAR_
559#define MPP_BROADCAST_SCALAR_ mpp_broadcast_int8_scalar
560#undef MPP_BROADCAST_2D_
561#define MPP_BROADCAST_2D_ mpp_broadcast_int8_2d
562#undef MPP_BROADCAST_3D_
563#define MPP_BROADCAST_3D_ mpp_broadcast_int8_3d
564#undef MPP_BROADCAST_4D_
565#define MPP_BROADCAST_4D_ mpp_broadcast_int8_4d
566#undef MPP_BROADCAST_5D_
567#define MPP_BROADCAST_5D_ mpp_broadcast_int8_5d
569#define MPP_SCATTERV_ mpp_scatterv_int8
571#define MPP_GATHER_ mpp_gather_int8
573#define MPP_GATHERV_ mpp_gatherv_int8
575#define MPP_TYPE_ integer(i8_kind)
576#undef MPP_TYPE_BYTELEN_
577#define MPP_TYPE_BYTELEN_ 8
579#define MPI_TYPE_ MPI_INTEGER8
580#include <mpp_transmit_nocomm.fh>
583#define MPP_TRANSMIT_ mpp_transmit_int4
584#undef MPP_TRANSMIT_SCALAR_
585#define MPP_TRANSMIT_SCALAR_ mpp_transmit_int4_scalar
586#undef MPP_TRANSMIT_2D_
587#define MPP_TRANSMIT_2D_ mpp_transmit_int4_2d
588#undef MPP_TRANSMIT_3D_
589#define MPP_TRANSMIT_3D_ mpp_transmit_int4_3d
590#undef MPP_TRANSMIT_4D_
591#define MPP_TRANSMIT_4D_ mpp_transmit_int4_4d
592#undef MPP_TRANSMIT_5D_
593#define MPP_TRANSMIT_5D_ mpp_transmit_int4_5d
595#define MPP_RECV_ mpp_recv_int4
596#undef MPP_RECV_SCALAR_
597#define MPP_RECV_SCALAR_ mpp_recv_int4_scalar
599#define MPP_RECV_2D_ mpp_recv_int4_2d
601#define MPP_RECV_3D_ mpp_recv_int4_3d
603#define MPP_RECV_4D_ mpp_recv_int4_4d
605#define MPP_RECV_5D_ mpp_recv_int4_5d
607#define MPP_SEND_ mpp_send_int4
608#undef MPP_SEND_SCALAR_
609#define MPP_SEND_SCALAR_ mpp_send_int4_scalar
611#define MPP_SEND_2D_ mpp_send_int4_2d
613#define MPP_SEND_3D_ mpp_send_int4_3d
615#define MPP_SEND_4D_ mpp_send_int4_4d
617#define MPP_SEND_5D_ mpp_send_int4_5d
619#define MPP_BROADCAST_ mpp_broadcast_int4
620#undef MPP_BROADCAST_SCALAR_
621#define MPP_BROADCAST_SCALAR_ mpp_broadcast_int4_scalar
622#undef MPP_BROADCAST_2D_
623#define MPP_BROADCAST_2D_ mpp_broadcast_int4_2d
624#undef MPP_BROADCAST_3D_
625#define MPP_BROADCAST_3D_ mpp_broadcast_int4_3d
626#undef MPP_BROADCAST_4D_
627#define MPP_BROADCAST_4D_ mpp_broadcast_int4_4d
628#undef MPP_BROADCAST_5D_
629#define MPP_BROADCAST_5D_ mpp_broadcast_int4_5d
631#define MPP_SCATTERV_ mpp_scatterv_int4
633#define MPP_GATHER_ mpp_gather_int4
635#define MPP_GATHERV_ mpp_gatherv_int4
637#define MPP_TYPE_ integer(i4_kind)
638#undef MPP_TYPE_BYTELEN_
639#define MPP_TYPE_BYTELEN_ 4
641#define MPI_TYPE_ MPI_INTEGER4
642#include <mpp_transmit_nocomm.fh>
644#undef MPP_TYPE_INIT_VALUE
645#define MPP_TYPE_INIT_VALUE .false.
647#define MPP_TRANSMIT_ mpp_transmit_logical8
648#undef MPP_TRANSMIT_SCALAR_
649#define MPP_TRANSMIT_SCALAR_ mpp_transmit_logical8_scalar
650#undef MPP_TRANSMIT_2D_
651#define MPP_TRANSMIT_2D_ mpp_transmit_logical8_2d
652#undef MPP_TRANSMIT_3D_
653#define MPP_TRANSMIT_3D_ mpp_transmit_logical8_3d
654#undef MPP_TRANSMIT_4D_
655#define MPP_TRANSMIT_4D_ mpp_transmit_logical8_4d
656#undef MPP_TRANSMIT_5D_
657#define MPP_TRANSMIT_5D_ mpp_transmit_logical8_5d
659#define MPP_RECV_ mpp_recv_logical8
660#undef MPP_RECV_SCALAR_
661#define MPP_RECV_SCALAR_ mpp_recv_logical8_scalar
663#define MPP_RECV_2D_ mpp_recv_logical8_2d
665#define MPP_RECV_3D_ mpp_recv_logical8_3d
667#define MPP_RECV_4D_ mpp_recv_logical8_4d
669#define MPP_RECV_5D_ mpp_recv_logical8_5d
671#define MPP_SEND_ mpp_send_logical8
672#undef MPP_SEND_SCALAR_
673#define MPP_SEND_SCALAR_ mpp_send_logical8_scalar
675#define MPP_SEND_2D_ mpp_send_logical8_2d
677#define MPP_SEND_3D_ mpp_send_logical8_3d
679#define MPP_SEND_4D_ mpp_send_logical8_4d
681#define MPP_SEND_5D_ mpp_send_logical8_5d
683#define MPP_BROADCAST_ mpp_broadcast_logical8
684#undef MPP_BROADCAST_SCALAR_
685#define MPP_BROADCAST_SCALAR_ mpp_broadcast_logical8_scalar
686#undef MPP_BROADCAST_2D_
687#define MPP_BROADCAST_2D_ mpp_broadcast_logical8_2d
688#undef MPP_BROADCAST_3D_
689#define MPP_BROADCAST_3D_ mpp_broadcast_logical8_3d
690#undef MPP_BROADCAST_4D_
691#define MPP_BROADCAST_4D_ mpp_broadcast_logical8_4d
692#undef MPP_BROADCAST_5D_
693#define MPP_BROADCAST_5D_ mpp_broadcast_logical8_5d
695#define MPP_SCATTERV_ mpp_scatterv_logical8
697#define MPP_GATHER_ mpp_gather_logical8
699#define MPP_GATHERV_ mpp_gatherv_logical8
701#define MPP_TYPE_ logical(l8_kind)
702#undef MPP_TYPE_BYTELEN_
703#define MPP_TYPE_BYTELEN_ 8
705#define MPI_TYPE_ MPI_INTEGER8
706#include <mpp_transmit_nocomm.fh>
709#define MPP_TRANSMIT_ mpp_transmit_logical4
710#undef MPP_TRANSMIT_SCALAR_
711#define MPP_TRANSMIT_SCALAR_ mpp_transmit_logical4_scalar
712#undef MPP_TRANSMIT_2D_
713#define MPP_TRANSMIT_2D_ mpp_transmit_logical4_2d
714#undef MPP_TRANSMIT_3D_
715#define MPP_TRANSMIT_3D_ mpp_transmit_logical4_3d
716#undef MPP_TRANSMIT_4D_
717#define MPP_TRANSMIT_4D_ mpp_transmit_logical4_4d
718#undef MPP_TRANSMIT_5D_
719#define MPP_TRANSMIT_5D_ mpp_transmit_logical4_5d
721#define MPP_RECV_ mpp_recv_logical4
722#undef MPP_RECV_SCALAR_
723#define MPP_RECV_SCALAR_ mpp_recv_logical4_scalar
725#define MPP_RECV_2D_ mpp_recv_logical4_2d
727#define MPP_RECV_3D_ mpp_recv_logical4_3d
729#define MPP_RECV_4D_ mpp_recv_logical4_4d
731#define MPP_RECV_5D_ mpp_recv_logical4_5d
733#define MPP_SEND_ mpp_send_logical4
734#undef MPP_SEND_SCALAR_
735#define MPP_SEND_SCALAR_ mpp_send_logical4_scalar
737#define MPP_SEND_2D_ mpp_send_logical4_2d
739#define MPP_SEND_3D_ mpp_send_logical4_3d
741#define MPP_SEND_4D_ mpp_send_logical4_4d
743#define MPP_SEND_5D_ mpp_send_logical4_5d
745#define MPP_BROADCAST_ mpp_broadcast_logical4
746#undef MPP_BROADCAST_SCALAR_
747#define MPP_BROADCAST_SCALAR_ mpp_broadcast_logical4_scalar
748#undef MPP_BROADCAST_2D_
749#define MPP_BROADCAST_2D_ mpp_broadcast_logical4_2d
750#undef MPP_BROADCAST_3D_
751#define MPP_BROADCAST_3D_ mpp_broadcast_logical4_3d
752#undef MPP_BROADCAST_4D_
753#define MPP_BROADCAST_4D_ mpp_broadcast_logical4_4d
754#undef MPP_BROADCAST_5D_
755#define MPP_BROADCAST_5D_ mpp_broadcast_logical4_5d
757#define MPP_SCATTERV_ mpp_scatterv_logical4
759#define MPP_GATHER_ mpp_gather_logical4
761#define MPP_GATHERV_ mpp_gatherv_logical4
763#define MPP_TYPE_ logical(l4_kind)
764#undef MPP_TYPE_BYTELEN_
765#define MPP_TYPE_BYTELEN_ 4
767#define MPI_TYPE_ MPI_INTEGER4
768#include <mpp_transmit_nocomm.fh>
769#undef MPP_TYPE_INIT_VALUE
777#define MPP_REDUCE_0D_ mpp_max_real8_0d
779#define MPP_REDUCE_1D_ mpp_max_real8_1d
781#define MPP_TYPE_ real(r8_kind)
782#undef MPP_TYPE_BYTELEN_
783#define MPP_TYPE_BYTELEN_ 8
785#define MPI_TYPE_ MPI_REAL8
787#define MPI_REDUCE_ MPI_MAX
788#include <mpp_reduce_nocomm.fh>
791#define MPP_REDUCE_0D_ mpp_max_real4_0d
793#define MPP_REDUCE_1D_ mpp_max_real4_1d
795#define MPP_TYPE_ real(r4_kind)
796#undef MPP_TYPE_BYTELEN_
797#define MPP_TYPE_BYTELEN_ 4
799#define MPI_TYPE_ MPI_REAL4
801#define MPI_REDUCE_ MPI_MAX
802#include <mpp_reduce_nocomm.fh>
805#define MPP_REDUCE_0D_ mpp_max_int8_0d
807#define MPP_REDUCE_1D_ mpp_max_int8_1d
809#define MPP_TYPE_ integer(i8_kind)
810#undef MPP_TYPE_BYTELEN_
811#define MPP_TYPE_BYTELEN_ 8
813#define MPI_TYPE_ MPI_INTEGER8
815#define MPI_REDUCE_ MPI_MAX
816#include <mpp_reduce_nocomm.fh>
819#define MPP_REDUCE_0D_ mpp_max_int4_0d
821#define MPP_REDUCE_1D_ mpp_max_int4_1d
823#define MPP_TYPE_ integer(i4_kind)
824#undef MPP_TYPE_BYTELEN_
825#define MPP_TYPE_BYTELEN_ 4
827#define MPI_TYPE_ MPI_INTEGER4
829#define MPI_REDUCE_ MPI_MAX
830#include <mpp_reduce_nocomm.fh>
833#define MPP_REDUCE_0D_ mpp_min_real8_0d
835#define MPP_REDUCE_1D_ mpp_min_real8_1d
837#define MPP_TYPE_ real(r8_kind)
838#undef MPP_TYPE_BYTELEN_
839#define MPP_TYPE_BYTELEN_ 8
841#define MPI_TYPE_ MPI_REAL8
843#define MPI_REDUCE_ MPI_MIN
844#include <mpp_reduce_nocomm.fh>
847#define MPP_REDUCE_0D_ mpp_min_real4_0d
849#define MPP_REDUCE_1D_ mpp_min_real4_1d
851#define MPP_TYPE_ real(r4_kind)
852#undef MPP_TYPE_BYTELEN_
853#define MPP_TYPE_BYTELEN_ 4
855#define MPI_TYPE_ MPI_REAL4
857#define MPI_REDUCE_ MPI_MIN
858#include <mpp_reduce_nocomm.fh>
861#define MPP_REDUCE_0D_ mpp_min_int8_0d
863#define MPP_REDUCE_1D_ mpp_min_int8_1d
865#define MPP_TYPE_ integer(i8_kind)
866#undef MPP_TYPE_BYTELEN_
867#define MPP_TYPE_BYTELEN_ 8
869#define MPI_TYPE_ MPI_INTEGER8
871#define MPI_REDUCE_ MPI_MIN
872#include <mpp_reduce_nocomm.fh>
875#define MPP_REDUCE_0D_ mpp_min_int4_0d
877#define MPP_REDUCE_1D_ mpp_min_int4_1d
879#define MPP_TYPE_ integer(i4_kind)
880#undef MPP_TYPE_BYTELEN_
881#define MPP_TYPE_BYTELEN_ 4
883#define MPI_TYPE_ MPI_INTEGER4
885#define MPI_REDUCE_ MPI_MIN
886#include <mpp_reduce_nocomm.fh>
889#define MPP_SUM_ mpp_sum_real8
890#undef MPP_SUM_SCALAR_
891#define MPP_SUM_SCALAR_ mpp_sum_real8_scalar
893#define MPP_SUM_2D_ mpp_sum_real8_2d
895#define MPP_SUM_3D_ mpp_sum_real8_3d
897#define MPP_SUM_4D_ mpp_sum_real8_4d
899#define MPP_SUM_5D_ mpp_sum_real8_5d
901#define MPP_TYPE_ real(r8_kind)
903#define MPI_TYPE_ MPI_REAL8
904#undef MPP_TYPE_BYTELEN_
905#define MPP_TYPE_BYTELEN_ 8
906#include <mpp_sum_nocomm.fh>
910#define MPP_SUM_ mpp_sum_cmplx8
911#undef MPP_SUM_SCALAR_
912#define MPP_SUM_SCALAR_ mpp_sum_cmplx8_scalar
914#define MPP_SUM_2D_ mpp_sum_cmplx8_2d
916#define MPP_SUM_3D_ mpp_sum_cmplx8_3d
918#define MPP_SUM_4D_ mpp_sum_cmplx8_4d
920#define MPP_SUM_5D_ mpp_sum_cmplx8_5d
922#define MPP_TYPE_ complex(c8_kind)
924#define MPI_TYPE_ MPI_DOUBLE_COMPLEX
925#undef MPP_TYPE_BYTELEN_
926#define MPP_TYPE_BYTELEN_ 16
927#include <mpp_sum_nocomm.fh>
931#define MPP_SUM_ mpp_sum_real4
932#undef MPP_SUM_SCALAR_
933#define MPP_SUM_SCALAR_ mpp_sum_real4_scalar
935#define MPP_SUM_2D_ mpp_sum_real4_2d
937#define MPP_SUM_3D_ mpp_sum_real4_3d
939#define MPP_SUM_4D_ mpp_sum_real4_4d
941#define MPP_SUM_5D_ mpp_sum_real4_5d
943#define MPP_TYPE_ real(r4_kind)
945#define MPI_TYPE_ MPI_REAL4
946#undef MPP_TYPE_BYTELEN_
947#define MPP_TYPE_BYTELEN_ 4
948#include <mpp_sum_nocomm.fh>
952#define MPP_SUM_ mpp_sum_cmplx4
953#undef MPP_SUM_SCALAR_
954#define MPP_SUM_SCALAR_ mpp_sum_cmplx4_scalar
956#define MPP_SUM_2D_ mpp_sum_cmplx4_2d
958#define MPP_SUM_3D_ mpp_sum_cmplx4_3d
960#define MPP_SUM_4D_ mpp_sum_cmplx4_4d
962#define MPP_SUM_5D_ mpp_sum_cmplx4_5d
964#define MPP_TYPE_ complex(c4_kind)
966#define MPI_TYPE_ MPI_COMPLEX
967#undef MPP_TYPE_BYTELEN_
968#define MPP_TYPE_BYTELEN_ 8
969#include <mpp_sum_nocomm.fh>
973#define MPP_SUM_ mpp_sum_int8
974#undef MPP_SUM_SCALAR_
975#define MPP_SUM_SCALAR_ mpp_sum_int8_scalar
977#define MPP_SUM_2D_ mpp_sum_int8_2d
979#define MPP_SUM_3D_ mpp_sum_int8_3d
981#define MPP_SUM_4D_ mpp_sum_int8_4d
983#define MPP_SUM_5D_ mpp_sum_int8_5d
985#define MPP_TYPE_ integer(i8_kind)
987#define MPI_TYPE_ MPI_INTEGER8
988#undef MPP_TYPE_BYTELEN_
989#define MPP_TYPE_BYTELEN_ 8
990#include <mpp_sum_nocomm.fh>
993#define MPP_SUM_ mpp_sum_int4
994#undef MPP_SUM_SCALAR_
995#define MPP_SUM_SCALAR_ mpp_sum_int4_scalar
997#define MPP_SUM_2D_ mpp_sum_int4_2d
999#define MPP_SUM_3D_ mpp_sum_int4_3d
1001#define MPP_SUM_4D_ mpp_sum_int4_4d
1003#define MPP_SUM_5D_ mpp_sum_int4_5d
1005#define MPP_TYPE_ integer(i4_kind)
1007#define MPI_TYPE_ MPI_INTEGER4
1008#undef MPP_TYPE_BYTELEN_
1009#define MPP_TYPE_BYTELEN_ 4
1010#include <mpp_sum_nocomm.fh>
1013#define MPP_SUM_AD_ mpp_sum_real8_ad
1014#undef MPP_SUM_SCALAR_AD_
1015#define MPP_SUM_SCALAR_AD_ mpp_sum_real8_scalar_ad
1016#undef MPP_SUM_2D_AD_
1017#define MPP_SUM_2D_AD_ mpp_sum_real8_2d_ad
1018#undef MPP_SUM_3D_AD_
1019#define MPP_SUM_3D_AD_ mpp_sum_real8_3d_ad
1020#undef MPP_SUM_4D_AD_
1021#define MPP_SUM_4D_AD_ mpp_sum_real8_4d_ad
1022#undef MPP_SUM_5D_AD_
1023#define MPP_SUM_5D_AD_ mpp_sum_real8_5d_ad
1025#define MPP_TYPE_ real(r8_kind)
1027#define MPI_TYPE_ MPI_REAL8
1028#undef MPP_TYPE_BYTELEN_
1029#define MPP_TYPE_BYTELEN_ 8
1030#include <mpp_sum_nocomm_ad.fh>
1034#define MPP_SUM_AD_ mpp_sum_cmplx8_ad
1035#undef MPP_SUM_SCALAR_AD_
1036#define MPP_SUM_SCALAR_AD_ mpp_sum_cmplx8_scalar_ad
1037#undef MPP_SUM_2D_AD_
1038#define MPP_SUM_2D_AD_ mpp_sum_cmplx8_2d_ad
1039#undef MPP_SUM_3D_AD_
1040#define MPP_SUM_3D_AD_ mpp_sum_cmplx8_3d_ad
1041#undef MPP_SUM_4D_AD_
1042#define MPP_SUM_4D_AD_ mpp_sum_cmplx8_4d_ad
1043#undef MPP_SUM_5D_AD_
1044#define MPP_SUM_5D_AD_ mpp_sum_cmplx8_5d_ad
1046#define MPP_TYPE_ complex(c8_kind)
1048#define MPI_TYPE_ MPI_DOUBLE_COMPLEX
1049#undef MPP_TYPE_BYTELEN_
1050#define MPP_TYPE_BYTELEN_ 16
1051#include <mpp_sum_nocomm_ad.fh>
1055#define MPP_SUM_AD_ mpp_sum_real4_ad
1056#undef MPP_SUM_SCALAR_AD_
1057#define MPP_SUM_SCALAR_AD_ mpp_sum_real4_scalar_ad
1058#undef MPP_SUM_2D_AD_
1059#define MPP_SUM_2D_AD_ mpp_sum_real4_2d_ad
1060#undef MPP_SUM_3D_AD_
1061#define MPP_SUM_3D_AD_ mpp_sum_real4_3d_ad
1062#undef MPP_SUM_4D_AD_
1063#define MPP_SUM_4D_AD_ mpp_sum_real4_4d_ad
1064#undef MPP_SUM_5D_AD_
1065#define MPP_SUM_5D_AD_ mpp_sum_real4_5d_ad
1067#define MPP_TYPE_ real(r4_kind)
1069#define MPI_TYPE_ MPI_REAL4
1070#undef MPP_TYPE_BYTELEN_
1071#define MPP_TYPE_BYTELEN_ 4
1072#include <mpp_sum_nocomm_ad.fh>
1076#define MPP_SUM_AD_ mpp_sum_cmplx4_ad
1077#undef MPP_SUM_SCALAR_AD_
1078#define MPP_SUM_SCALAR_AD_ mpp_sum_cmplx4_scalar_ad
1079#undef MPP_SUM_2D_AD_
1080#define MPP_SUM_2D_AD_ mpp_sum_cmplx4_2d_ad
1081#undef MPP_SUM_3D_AD_
1082#define MPP_SUM_3D_AD_ mpp_sum_cmplx4_3d_ad
1083#undef MPP_SUM_4D_AD_
1084#define MPP_SUM_4D_AD_ mpp_sum_cmplx4_4d_ad
1085#undef MPP_SUM_5D_AD_
1086#define MPP_SUM_5D_AD_ mpp_sum_cmplx4_5d_ad
1088#define MPP_TYPE_ complex(c4_kind)
1090#define MPI_TYPE_ MPI_COMPLEX
1091#undef MPP_TYPE_BYTELEN_
1092#define MPP_TYPE_BYTELEN_ 8
1093#include <mpp_sum_nocomm_ad.fh>
1097#define MPP_SUM_AD_ mpp_sum_int8_ad
1098#undef MPP_SUM_SCALAR_AD_
1099#define MPP_SUM_SCALAR_AD_ mpp_sum_int8_scalar_ad
1100#undef MPP_SUM_2D_AD_
1101#define MPP_SUM_2D_AD_ mpp_sum_int8_2d_ad
1102#undef MPP_SUM_3D_AD_
1103#define MPP_SUM_3D_AD_ mpp_sum_int8_3d_ad
1104#undef MPP_SUM_4D_AD_
1105#define MPP_SUM_4D_AD_ mpp_sum_int8_4d_ad
1106#undef MPP_SUM_5D_AD_
1107#define MPP_SUM_5D_AD_ mpp_sum_int8_5d_ad
1109#define MPP_TYPE_ integer(i8_kind)
1111#define MPI_TYPE_ MPI_INTEGER8
1112#undef MPP_TYPE_BYTELEN_
1113#define MPP_TYPE_BYTELEN_ 8
1114#include <mpp_sum_nocomm_ad.fh>
1117#define MPP_SUM_AD_ mpp_sum_int4_ad
1118#undef MPP_SUM_SCALAR_AD_
1119#define MPP_SUM_SCALAR_AD_ mpp_sum_int4_scalar_ad
1120#undef MPP_SUM_2D_AD_
1121#define MPP_SUM_2D_AD_ mpp_sum_int4_2d_ad
1122#undef MPP_SUM_3D_AD_
1123#define MPP_SUM_3D_AD_ mpp_sum_int4_3d_ad
1124#undef MPP_SUM_4D_AD_
1125#define MPP_SUM_4D_AD_ mpp_sum_int4_4d_ad
1126#undef MPP_SUM_5D_AD_
1127#define MPP_SUM_5D_AD_ mpp_sum_int4_5d_ad
1129#define MPP_TYPE_ integer(i4_kind)
1131#define MPI_TYPE_ MPI_INTEGER4
1132#undef MPP_TYPE_BYTELEN_
1133#define MPP_TYPE_BYTELEN_ 4
1134#include <mpp_sum_nocomm_ad.fh>
1143#undef MPP_ALLTOALLV_
1144#undef MPP_ALLTOALLW_
1146#undef MPP_TYPE_BYTELEN_
1148#define MPP_ALLTOALL_ mpp_alltoall_int4
1149#define MPP_ALLTOALLV_ mpp_alltoall_int4_v
1150#define MPP_ALLTOALLW_ mpp_alltoall_int4_w
1151#define MPP_TYPE_ integer(i4_kind)
1152#define MPP_TYPE_BYTELEN_ 4
1153#define MPI_TYPE_ MPI_INTEGER4
1154#include <mpp_alltoall_nocomm.fh>
1157#undef MPP_ALLTOALLV_
1158#undef MPP_ALLTOALLW_
1160#undef MPP_TYPE_BYTELEN_
1162#define MPP_ALLTOALL_ mpp_alltoall_int8
1163#define MPP_ALLTOALLV_ mpp_alltoall_int8_v
1164#define MPP_ALLTOALLW_ mpp_alltoall_int8_w
1165#define MPP_TYPE_ integer(i8_kind)
1166#define MPP_TYPE_BYTELEN_ 8
1167#define MPI_TYPE_ MPI_INTEGER8
1168#include <mpp_alltoall_nocomm.fh>
1171#undef MPP_ALLTOALLV_
1172#undef MPP_ALLTOALLW_
1174#undef MPP_TYPE_BYTELEN_
1176#define MPP_ALLTOALL_ mpp_alltoall_real4
1177#define MPP_ALLTOALLV_ mpp_alltoall_real4_v
1178#define MPP_ALLTOALLW_ mpp_alltoall_real4_w
1179#define MPP_TYPE_ real(r4_kind)
1180#define MPP_TYPE_BYTELEN_ 4
1181#define MPI_TYPE_ MPI_REAL4
1182#include <mpp_alltoall_nocomm.fh>
1185#undef MPP_ALLTOALLV_
1186#undef MPP_ALLTOALLW_
1188#undef MPP_TYPE_BYTELEN_
1190#define MPP_ALLTOALL_ mpp_alltoall_real8
1191#define MPP_ALLTOALLV_ mpp_alltoall_real8_v
1192#define MPP_ALLTOALLW_ mpp_alltoall_real8_w
1193#define MPP_TYPE_ real(r8_kind)
1194#define MPP_TYPE_BYTELEN_ 8
1195#define MPI_TYPE_ MPI_REAL8
1196#include <mpp_alltoall_nocomm.fh>
1199#undef MPP_ALLTOALLV_
1200#undef MPP_ALLTOALLW_
1202#undef MPP_TYPE_BYTELEN_
1204#define MPP_ALLTOALL_ mpp_alltoall_logical4
1205#define MPP_ALLTOALLV_ mpp_alltoall_logical4_v
1206#define MPP_ALLTOALLW_ mpp_alltoall_logical4_w
1207#define MPP_TYPE_ logical(l4_kind)
1208#define MPP_TYPE_BYTELEN_ 4
1209#define MPI_TYPE_ MPI_INTEGER4
1210#include <mpp_alltoall_nocomm.fh>
1213#undef MPP_ALLTOALLV_
1214#undef MPP_ALLTOALLW_
1216#undef MPP_TYPE_BYTELEN_
1218#define MPP_ALLTOALL_ mpp_alltoall_logical8
1219#define MPP_ALLTOALLV_ mpp_alltoall_logical8_v
1220#define MPP_ALLTOALLW_ mpp_alltoall_logical8_w
1221#define MPP_TYPE_ logical(l8_kind)
1222#define MPP_TYPE_BYTELEN_ 8
1223#define MPI_TYPE_ MPI_INTEGER8
1224#include <mpp_alltoall_nocomm.fh>
1231#define MPP_TYPE_CREATE_ mpp_type_create_int4
1232#define MPP_TYPE_ integer(i4_kind)
1233#define MPI_TYPE_ MPI_INTEGER4
1234#include <mpp_type_nocomm.fh>
1236#define MPP_TYPE_CREATE_ mpp_type_create_int8
1237#define MPP_TYPE_ integer(i8_kind)
1238#define MPI_TYPE_ MPI_INTEGER8
1239#include <mpp_type_nocomm.fh>
1241#define MPP_TYPE_CREATE_ mpp_type_create_real4
1242#define MPP_TYPE_ real(r4_kind)
1243#define MPI_TYPE_ MPI_REAL4
1244#include <mpp_type_nocomm.fh>
1246#define MPP_TYPE_CREATE_ mpp_type_create_real8
1247#define MPP_TYPE_ real(r8_kind)
1248#define MPI_TYPE_ MPI_REAL8
1249#include <mpp_type_nocomm.fh>
1251#define MPP_TYPE_CREATE_ mpp_type_create_cmplx4
1252#define MPP_TYPE_ complex(c4_kind)
1253#define MPI_TYPE_ MPI_COMPLEX8
1254#include <mpp_type_nocomm.fh>
1256#define MPP_TYPE_CREATE_ mpp_type_create_cmplx8
1257#define MPP_TYPE_ complex(c8_kind)
1258#define MPI_TYPE_ MPI_COMPLEX16
1259#include <mpp_type_nocomm.fh>
1261#define MPP_TYPE_CREATE_ mpp_type_create_logical4
1262#define MPP_TYPE_ logical(l4_kind)
1263#define MPI_TYPE_ MPI_INTEGER4
1264#include <mpp_type_nocomm.fh>
1266#define MPP_TYPE_CREATE_ mpp_type_create_logical8
1267#define MPP_TYPE_ logical(l8_kind)
1268#define MPI_TYPE_ MPI_INTEGER8
1269#include <mpp_type_nocomm.fh>
1274#undef MPP_TYPE_CREATE_
1276subroutine mpp_type_free(dtype)
1277 type(mpp_type),
pointer,
intent(inout) :: dtype
1279 call mpp_error(note,
'MPP_TYPE_FREE: ' &
1280 //
'This function should not be used in serial mode.')
1285end subroutine mpp_type_free
subroutine mpp_sync(pelist, do_self)
Synchronize PEs in list.