Skip to content

Commit

Permalink
mpi bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
anshgupta1234 committed Nov 7, 2024
1 parent 10628d3 commit bac657b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/pre_process/m_data_output.fpp
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ contains
! Initial displacement to skip at beginning of file
disp = 0

call MPI_FILE_SET_VIEW(ifile, disp, MPI_INTEGER, MPI_IO_levelset_DATA%view, &
call MPI_FILE_SET_VIEW(ifile, disp, MPI_DOUBLE_PRECISION, MPI_IO_levelset_DATA%view, &
'native', mpi_info_int, ierr)
call MPI_FILE_WRITE_ALL(ifile, MPI_IO_levelset_DATA%var%sf, data_size, &
MPI_DOUBLE_PRECISION, status, ierr)
Expand All @@ -769,7 +769,7 @@ contains
! Initial displacement to skip at beginning of file
disp = 0

call MPI_FILE_SET_VIEW(ifile, disp, MPI_INTEGER, MPI_IO_levelsetnorm_DATA%view, &
call MPI_FILE_SET_VIEW(ifile, disp, MPI_DOUBLE_PRECISION, MPI_IO_levelsetnorm_DATA%view, &
'native', mpi_info_int, ierr)
call MPI_FILE_WRITE_ALL(ifile, MPI_IO_levelsetnorm_DATA%var%sf, data_size, &
MPI_DOUBLE_PRECISION, status, ierr)
Expand Down
8 changes: 4 additions & 4 deletions src/simulation/m_start_up.fpp
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ contains

disp = 0

Check warning on line 685 in src/simulation/m_start_up.fpp

View check run for this annotation

Codecov / codecov/patch

src/simulation/m_start_up.fpp#L685

Added line #L685 was not covered by tests
call MPI_FILE_SET_VIEW(ifile, disp, MPI_INTEGER, MPI_IO_levelset_DATA%view, &
call MPI_FILE_SET_VIEW(ifile, disp, MPI_DOUBLE_PRECISION, MPI_IO_levelset_DATA%view, &
'native', mpi_info_int, ierr)

Check warning on line 687 in src/simulation/m_start_up.fpp

View check run for this annotation

Codecov / codecov/patch

src/simulation/m_start_up.fpp#L687

Added line #L687 was not covered by tests
call MPI_FILE_READ(ifile, MPI_IO_levelset_DATA%var%sf, data_size, &
MPI_DOUBLE_PRECISION, status, ierr)
Expand All @@ -703,7 +703,7 @@ contains

disp = 0

Check warning on line 705 in src/simulation/m_start_up.fpp

View check run for this annotation

Codecov / codecov/patch

src/simulation/m_start_up.fpp#L705

Added line #L705 was not covered by tests
call MPI_FILE_SET_VIEW(ifile, disp, MPI_INTEGER, MPI_IO_levelset_DATA%view, &
call MPI_FILE_SET_VIEW(ifile, disp, MPI_DOUBLE_PRECISION, MPI_IO_levelset_DATA%view, &
'native', mpi_info_int, ierr)

Check warning on line 707 in src/simulation/m_start_up.fpp

View check run for this annotation

Codecov / codecov/patch

src/simulation/m_start_up.fpp#L707

Added line #L707 was not covered by tests
call MPI_FILE_READ(ifile, MPI_IO_levelsetnorm_DATA%var%sf, data_size, &
MPI_DOUBLE_PRECISION, status, ierr)
Expand Down Expand Up @@ -833,7 +833,7 @@ contains

disp = 0

call MPI_FILE_SET_VIEW(ifile, disp, MPI_INTEGER, MPI_IO_levelset_DATA%view, &
call MPI_FILE_SET_VIEW(ifile, disp, MPI_DOUBLE_PRECISION, MPI_IO_levelset_DATA%view, &
'native', mpi_info_int, ierr)
call MPI_FILE_READ(ifile, MPI_IO_levelset_DATA%var%sf, data_size, &
MPI_DOUBLE_PRECISION, status, ierr)
Expand All @@ -853,7 +853,7 @@ contains

disp = 0

call MPI_FILE_SET_VIEW(ifile, disp, MPI_INTEGER, MPI_IO_levelset_DATA%view, &
call MPI_FILE_SET_VIEW(ifile, disp, MPI_DOUBLE_PRECISION, MPI_IO_levelset_DATA%view, &
'native', mpi_info_int, ierr)
call MPI_FILE_READ(ifile, MPI_IO_levelsetnorm_DATA%var%sf, data_size, &
MPI_DOUBLE_PRECISION, status, ierr)
Expand Down

0 comments on commit bac657b

Please sign in to comment.