Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

How to make each pe writing to a different log file?

I want to write the log file separately, that is, each pe writes to a different log file, instead the default setting all the pes output within the same file such as ccsm.log.110224-115416.

Does anyone can give me some suggestions how to achieve this? Very appreciate.
 
I can do it now, Great, simply by adding some code near 167 of seq_comm_mct.F90 as follows:

infile = 'out.xxx'

call mpi_init(ierr)
call shr_mpi_chkerr(ierr,subname//' mpi_init')
call mpi_comm_rank(MPI_COMM_WORLD, mype , ierr)

write(infile(5:7),'(i3.3)')mype
open(iulog,file=trim(infile))

and then replace iulog=6 to another unit other than 6, such as iulog=113

that's all
 
Top