MPAS forrtl: severe (257)

Reports of suspected bugs in MPAS-Atmosphere. Suggestions for improvements to MPAS-Atmosphere may also be posted here.
Post Reply
zhang051
Posts: 1
Joined: Mon Aug 09, 2021 1:39 am

MPAS forrtl: severe (257)

Post by zhang051 » Tue Nov 30, 2021 7:25 pm

On behalf of DTN, I would like to share with the MPAS community the error we encountered and a fix we made, which may not be the best, but works for us.

Shuxia Zhang, PhD, MBA
DTN Cloud engineer


Software: MPAS-A

Compiler Intel oneapi 2021.04

Error Description: "forrtl: severe (257): formatted I/O to unit open for unformatted transfers, unit 22, file /path/mpas/run/fort.22 but the Slurm job keeps running. "

The Fix: Use of unformatted format. Specifically, modified lines 739-740,
225-225 of mpas_atm_core.F in the directory core_atmosphere:

!open(22,file=trim(config_restart_timestamp_name),form='formatted',status='unknown')
!write(22,'(a)',advance='no') trim(timeStamp)

open(22,file=trim(config_restart_timestamp_name),form='unformatted',status='unknown')
write(22) trim(timeStamp)


open(22,file=trim(config_restart_timestamp_name),form='unformatted',status='old')
read(22) startTimeStamp

Post Reply

Return to “Bugs”