5 character(len=NEKO_FNAME_LEN) :: fname, output_
9 character(len=80) :: suffix
11 argc = command_argument_count()
13 if ((argc .lt. 1) .or. (argc .gt. 2))
then
14 write(*,*)
'Usage: ./rea2nbin <reafile> <neko mesh>'
20 if (pe_size .gt. 1)
then
21 call neko_error(
"rea2nbin can only run on 1 rank")
24 call get_command_argument(1, fname)
25 call filename_suffix(fname, suffix)
26 if (suffix .ne.
"re2")
then
27 call neko_error(
"rea is no longer supported. Please convert to re2 first")
31 call get_command_argument(2, output_)
32 call filename_suffix(output_, suffix)
34 if (suffix .ne.
"nmsh")
then
35 call neko_error(
"Invalid output format")
38 call filename_chsuffix(fname, output_,
'nmsh')
subroutine neko_finalize(c)
NEKTON session data reader.