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

Dan Jones dcjones.work at gmail.com
Wed Mar 24 17:21:25 EDT 2021


Hi Martin,

It isn't a general problem on ARCHER2. Fortunately, we are able to run
several different configurations of MITgcm on ARCHER2, including the
ECCOv4-r4 setup, for example.

You're right, SINGLE_DISK_IO was defined in the setup that I am using
(which is partially based on SOSE). I hadn't noticed before. When I
reverted to the default case, with #undef SINGLE_DISK_IO, this problem went
away. Thanks for your help!

Best,
Dan


On Wed, Mar 24, 2021 at 4:00 PM <mitgcm-support-request at mitgcm.org> wrote:

> Send MITgcm-support mailing list submissions to
>         mitgcm-support at mitgcm.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support
> or, via email, send a message with subject or body 'help' to
>         mitgcm-support-request at mitgcm.org
>
> You can reach the person managing the list at
>         mitgcm-support-owner at mitgcm.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of MITgcm-support digest..."
>
>
> Today's Topics:
>
>    1. Crashing at run-time because /dev/null is not     available
>       (Dan Jones)
>    2. Re: Crashing at run-time because /dev/null is not available
>       (Martin Losch)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 23 Mar 2021 16:26:05 +0000
> From: Dan Jones <dcjones.work at gmail.com>
> To: mitgcm-support at mitgcm.org
> Subject: [MITgcm-support] Crashing at run-time because /dev/null is
>         not     available
> Message-ID:
>         <
> CAPj3iHSi+4oW5JokOPaa2hQjoRLmRsO4FTc+Gf4zgG-two31qw at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> 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
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://mailman.mitgcm.org/pipermail/mitgcm-support/attachments/20210323/125df85e/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Tue, 23 Mar 2021 18:04:49 +0100
> From: Martin Losch <Martin.Losch at awi.de>
> To: MITgcm Support <mitgcm-support at mitgcm.org>
> Subject: Re: [MITgcm-support] Crashing at run-time because /dev/null
>         is not available
> Message-ID: <B61BCE50-54AE-4841-BF6E-1C76E7B37DAE at awi.de>
> Content-Type: text/plain; charset="utf-8"
>
> 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-0001.p7s
> >
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support
>
>
> ------------------------------
>
> End of MITgcm-support Digest, Vol 213, Issue 10
> ***********************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mitgcm.org/pipermail/mitgcm-support/attachments/20210324/f2ca6154/attachment.html>


More information about the MITgcm-support mailing list