diff --git a/contrib/postprocess_fluid_stats/postprocess_fluid_stats.f90 b/contrib/postprocess_fluid_stats/postprocess_fluid_stats.f90 index 6b5dfb63816..19b5c4466cb 100644 --- a/contrib/postprocess_fluid_stats/postprocess_fluid_stats.f90 +++ b/contrib/postprocess_fluid_stats/postprocess_fluid_stats.f90 @@ -21,7 +21,7 @@ program postprocess_fluid_stats argc = command_argument_count() - if ((argc .lt. 3) .or. (argc .gt. 3)) then + if ((argc .lt. 2) .or. (argc .gt. 2)) then if (pe_rank .eq. 0) then write(*,*) 'Usage: ./postprocess_fluid_stats mesh.nmsh stats.fld' write(*,*) 'Example command: ./postprocess_fluid_stats mesh.nmsh statsblabla.fld' diff --git a/src/simulation.f90 b/src/simulation.f90 index 612cc21421e..90446975d49 100644 --- a/src/simulation.f90 +++ b/src/simulation.f90 @@ -296,7 +296,7 @@ subroutine simulation_joblimit_chkp(C, t) format_str = '.h5' end if end if - chkpf = file_t('joblimit'//trim(format_str)) + chkpf = file_t(C%output_directory // 'joblimit'//trim(format_str)) call chkpf%write(C%fluid%chkp, t) write(log_buf, '(A)') '! saving checkpoint >>>' call neko_log%message(log_buf)