[MITgcm-devel] [MITgcm-cvs] MITgcm/pkg/mnc CVS Commit
gael forget
gforget at mit.edu
Tue Jan 10 13:19:38 EST 2017
Hi Jean-Michel,
thanks for pointing this out. I see now that I should not have assumed that since mythid enters this routine as
an argument and is then passed along to print_error as an argument I could do the same with all_proc_die.
I am tempted to just revert the change — unless calling "ALL_PROC_DIE( 0 )” here would be useful?
Cheers,
Gael
On Jan 10, 2017, at 12:50 PM, Jean-Michel Campin <jmc at mit.edu> wrote:
> Hi Gael,
>
> I think there is potential problems with this addition of:
> CALL ALL_PROC_DIE( myThid )
> in S/R MNC_HANDLE_ERR:
>
> a) Since MNC_HANDLE_ERR is called in many places in pkg/mnc, we are not sure
> that all procs will hit the same error at the same time (e.g., a proc-specific
> file might be missing for one proc but not for all procs). So it seems dangerous
> to assume that this will never happen (at least from what I understand of pkg/mnc).
>
> b) you pass the argument "myThid" to this S/R call but most of pkg/mnc runs single
> thread. I recommend to check the comments/description within eesupp/src/all_proc_die.F
> regarding the argument "myThArg".
> So, in case we would ignore the first problem (a), this call would have to be changed to
> CALL ALL_PROC_DIE( 0 )
>
> Cheers,
> Jean-Michel
>
> On Tue, Jan 10, 2017 at 10:44:07AM -0500, Gael Forget wrote:
>> Update of /u/gcmpack/MITgcm/pkg/mnc
>> In directory baudelaire:/srv/scratch/gforget/MITgcm_201503/pkg/mnc
>>
>> Modified Files:
>> mnc_utils.F
>> Log Message:
>>
>> - call ALL_PROC_DIE before 'stop', refer to routine name in stop message
>>
>>
>>
>> _______________________________________________
>> MITgcm-cvs mailing list
>> MITgcm-cvs at mitgcm.org
>> http://mitgcm.org/mailman/listinfo/mitgcm-cvs
>
> _______________________________________________
> MITgcm-devel mailing list
> MITgcm-devel at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1843 bytes
Desc: not available
URL: <http://mitgcm.org/pipermail/mitgcm-devel/attachments/20170110/3d239f28/attachment.p7s>
More information about the MITgcm-devel
mailing list