Skip to content

Commit

Permalink
Merge pull request #1608 from ExtremeFLOW/fix/rea2nbin
Browse files Browse the repository at this point in the history
added check for running in serial and only using re2 to avoid potential issues
  • Loading branch information
njansson authored Nov 15, 2024
2 parents 77aedbb + 0513be9 commit 173f810
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions contrib/rea2nbin/rea2nbin.f90
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,16 @@ program rea2nbin
end if

call neko_init

if (pe_size .gt. 1) then
call neko_error("rea2nbin can only run on 1 rank")
end if

call get_command_argument(1, fname)
call filename_suffix(fname, suffix)
if (suffix .ne. "re2") then
call neko_error("rea is no longer supported. Please convert to re2 first")
end if

if (argc .eq. 2) then
call get_command_argument(2, output_)
Expand Down

0 comments on commit 173f810

Please sign in to comment.