5 call mpi_file_sync(mpi_fh,ierr)
7 call exitti(
'MPI_file_sync unsupported!$',0)
16 common /nekmpi/ nid,np,nekcomm,nekgroup,nekreal
22 character*1 fname1(132)
23 equivalence(fname1,fname)
25 l =
ltrunc(fnamei,len(fnamei))
27 $
call exitti(
'invalid string length$',l)
29 call chcopy(fname1 ,fnamei ,l)
30 call chcopy(fname1(l+1),char(0),1)
32 imode = mpi_mode_wronly+mpi_mode_create
34 imode = mpi_mode_rdonly
38 call mpi_file_open(nekcomm,fname,imode,
39 & mpi_info_null,mpi_fh,ierr)
41 call exitti(
'MPI_file_open unsupported!$',0)
55 call mpi_file_read_all(mpi_fh,buf,iout,mpi_real,
56 & mpi_status_ignore,ierr)
58 call exitti(
'MPI_file_read_all unsupported!$',0)
67 common /nekmpi/ nid,np,nekcomm,nekgroup,nekreal
72 if(iorank.ge.0 .and. nid.ne.iorank) iout = 0
74 call mpi_file_write_all(mpi_fh,buf,iout,mpi_real,
75 & mpi_status_ignore,ierr)
77 call exitti(
'MPI_file_write_all unsupported!$',0)
88 call mpi_file_close(mpi_fh,ierr)
90 call exitti(
'MPI_file_close unsupported!$',0)
102 &
call exitti(
'Invalid index in MPI_file_set_view!$',ioff_in)
104 call mpi_file_set_view(mpi_fh,ioff_in,mpi_byte,mpi_byte,
105 &
'native',mpi_info_null,ierr)
subroutine byte_open_mpi(fnamei, mpi_fh, ifro, ierr)
subroutine byte_write_mpi(buf, icount, iorank, mpi_fh, ierr)
subroutine byte_read_mpi(buf, icount, iorank, mpi_fh, ierr)
subroutine byte_close_mpi(mpi_fh, ierr)
subroutine byte_set_view(ioff_in, mpi_fh)
subroutine byte_sync_mpi(mpi_fh)
subroutine exitti(stringi, idata)
function ltrunc(string, l)
subroutine chcopy(a, b, n)