also store stdout
This commit is contained in:
parent
2cf904fe49
commit
0604d94e31
|
@ -4,7 +4,8 @@
|
||||||
!--------------------------------------------------------------------------------------------------
|
!--------------------------------------------------------------------------------------------------
|
||||||
module parallelization
|
module parallelization
|
||||||
use, intrinsic :: ISO_fortran_env, only: &
|
use, intrinsic :: ISO_fortran_env, only: &
|
||||||
OUTPUT_UNIT
|
OUTPUT_UNIT, &
|
||||||
|
ERROR_UNIT
|
||||||
|
|
||||||
#ifdef PETSC
|
#ifdef PETSC
|
||||||
#include <petsc/finclude/petscsys.h>
|
#include <petsc/finclude/petscsys.h>
|
||||||
|
@ -88,7 +89,8 @@ subroutine parallelization_init
|
||||||
|
|
||||||
#ifdef LOGFILE
|
#ifdef LOGFILE
|
||||||
write(rank_str,'(i4.4)') worldrank
|
write(rank_str,'(i4.4)') worldrank
|
||||||
open(OUTPUT_UNIT,file='log.'//rank_str,status='replace',encoding='UTF-8')
|
open(OUTPUT_UNIT,file='out.'//rank_str,status='replace',encoding='UTF-8')
|
||||||
|
open(ERROR_UNIT,file='error.'//rank_str,status='replace',encoding='UTF-8')
|
||||||
#else
|
#else
|
||||||
if (worldrank /= 0) then
|
if (worldrank /= 0) then
|
||||||
close(OUTPUT_UNIT) ! disable output
|
close(OUTPUT_UNIT) ! disable output
|
||||||
|
|
Loading…
Reference in New Issue