3 integer,
intent(in) :: mpi_fh
6 call mpi_file_sync(mpi_fh,ierr)
16 character(132) :: fname
17 integer :: mpi_fh, ierr
22 if(nid == pid0 .OR. nid == pid0r)
then
24 call mpi_file_open(nekcomm_io,fname, &
25 mpi_mode_rdwr+mpi_mode_create, &
26 mpi_info_null,mpi_fh,ierr)
28 write(6,*)
'ABORT: Error in byte_open_mpi ', ierr
33 write(6,*)
'byte_open_mpi: No MPI-IO support!'
48 integer :: icount, iorank, mpi_fh, ierr
53 if(nid == pid0 .OR. nid == pid0r)
then
55 if(iorank >= 0 .AND. nid /= iorank) iout = 0
58 call mpi_file_read(mpi_fh,buf,iout,mpi_byte, &
59 mpi_status_ignore,ierr)
61 call mpi_file_read_all(mpi_fh,buf,iout,mpi_byte, &
62 mpi_status_ignore,ierr)
65 write(6,*)
'ABORT: Error in byte_read_mpi ', ierr
70 write(6,*)
'byte_read_mpi: No MPI-IO support!'
86 integer :: icount, iorank, mpi_fh, ierr
91 if(nid == pid0 .OR. nid == pid0r)
then
93 if(iorank >= 0 .AND. nid /= iorank) iout = 0
96 call mpi_file_write(mpi_fh,buf,iout,mpi_byte, &
97 mpi_status_ignore,ierr)
99 call mpi_file_write_all(mpi_fh,buf,iout,mpi_byte, &
100 mpi_status_ignore,ierr)
103 write(6,*)
'ABORT: Error in byte_write_mpi ', ierr
108 write(6,*)
'byte_write_mpi: No MPI-IO support!'
118 use size_m
, only : nid
121 integer :: mpi_fh, ierr
125 if(nid == pid0 .OR. nid == pid0r)
then
126 call mpi_file_close(mpi_fh,ierr)
129 write(6,*)
'ABORT: Error in byte_close_mpi ', ierr
133 if(nid == 0)
write(6,*)
'byte_close_mpi: No MPI-IO support!'
146 integer(i8) :: ioff_in
152 if(nid == pid0 .OR. nid == pid0r)
then
154 write(6,*)
'byte_set_view: offset<0!'
158 call mpi_file_set_view(mpi_fh,ioff_in,mpi_byte,mpi_byte, &
159 'native',mpi_info_null,ierr)
161 write(6,*)
'ABORT: Error in byte_set_view ', ierr
184 if(nid == pid0 .OR. nid == pid0r)
then
189 call
csend(ir,idum,4,ir,0)
190 call
crecv(ir,ibuf,4)
202 call
crecv(mtype,idum,4)
203 call
csend(mtype,ibuf,4,0,0)
206 call
bcast(irank_io,isize*nn)
211 if(ierr > 0) call
exitt
212 call mpi_group_incl(nekgroup,nn,irank_io,nekgroup_io,ierr)
213 if(ierr > 0) call
exitt
215 if(ierr > 0) call
exitt
217 if(ierr > 0) call
exitt
219 if(ierr > 0) call
exitt
subroutine mpi_group_free
subroutine mpi_comm_create(icomm, igroup, icommd, ierr)
subroutine bcast(buf, len)
subroutine byte_set_view(ioff_in, mpi_fh)
subroutine crecv(mtype, buf, lenm)
subroutine mpi_comm_group(icomm, igroup, ierr)
subroutine byte_read_mpi(buf, icount, iorank, mpi_fh, ierr)
subroutine byte_close_mpi(mpi_fh, ierr)
subroutine nek_comm_io(nn)
subroutine byte_sync_mpi(mpi_fh)
subroutine csend(mtype, buf, len, jnid, jpid)
subroutine byte_open_mpi(fname, mpi_fh, ierr)
subroutine byte_write_mpi(buf, icount, iorank, mpi_fh, ierr)