[MITgcm-support] Crashing at run-time because /dev/null is not available

Martin Losch Martin.Losch at awi.de
Tue Mar 23 13:04:49 EDT 2021


Hi Dan,

are you sure you want to define SINGLE_DISK_IO? Setting this to undef (default) will remove the line of code that opens ‘/dev/null’ for easier debugging. 
Otherwise it’s probably a question for the sysadmins on Archer2? I would try simpler programmes for testing if this is a principal problem on that platform with that compiler.

Martin

> On 23. Mar 2021, at 17:26, Dan Jones <dcjones.work at gmail.com> wrote:
> 
> Hello,
> 
> I am trying to run MITgcm on [ARCHER2](https://www.archer2.ac.uk/), compiled using the gnu compiler. I'm getting the following runtime issue:
> 
> ```
> Error termination. Backtrace:
> At line 1598 of file eeboot_minimal.f (unit = 15)
> Fortran runtime error: Cannot open file '#dev/null': No such file or directory
> ```
> I notice that it's not looking for "/dev/null", but for some reason instead the first character in the address is #. 
> 
> The relevant block of code appears to be:
> 
> ```      
>         IF( myProcId .EQ. 0 ) THEN
>           WRITE(fNam,'(A,A)') 'STDERR.', myProcessStr(1:iTmp)
>           OPEN(errorMessageUnit,FILE=fNam,STATUS='unknown')
>           WRITE(fNam,'(A,A)') 'STDOUT.', myProcessStr(1:iTmp)
>           OPEN(standardMessageUnit,FILE=fNam,STATUS='unknown')
>         ELSE
>           OPEN(errorMessageUnit,FILE='/dev/null',STATUS='unknown')
>           standardMessageUnit=errorMessageUnit
>         ENDIF
> ```
> 
> Any ideas on what I should do? Where is the extra "#" character coming from?
> 
> Best,
> Dan 
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1665 bytes
Desc: not available
URL: <http://mailman.mitgcm.org/pipermail/mitgcm-support/attachments/20210323/eb2c7260/attachment.p7s>


More information about the MITgcm-support mailing list