[MITgcm-support] taf errors

Suneet Dwivedi suneetdwivedi at gmail.com
Fri Apr 10 22:11:25 EDT 2009


Hi Patrick,
Thankyou very much. You are fantastic. I added the staf flag "-version
1.9.48" to the lines AD_TAF_FLAGS and FTL_TAF_FLAGS and it compiles fine
this time.
Thanks again,
Suneet

On Fri, Apr 10, 2009 at 8:36 PM, Patrick Heimbach <heimbach at mit.edu> wrote:

>
> Hi Suneet,
>
> I just tried it, and it does work the way I described in previous mail.
> You have two options:
>
> 1)
> Manually modify your Makefile; in the line starting with
> AD_TAF_FLAGS         = -z -reverse -admark ad ...
> add the following staf option:
> -version 1.9.48
> Although you will get a warning, it will work and produce
> correct adjoint code.
> Disadvantage of doing it that way is that you'll have to redo it
> each time you (re-)generate your Makefile (i.e. do genmake2 ...)
>
> Therefore:
>
> 2)
> If you want to avoid having to manually change Makefile is to
> modify the file adjoint_default (I gather that's the one you are using)
> in directory
> tools/adjoint_options/
> by adding the staf flag
> -version 1.9.48
> to the line
> FTL_TAF_FLAGS="-z -forward -ftlmark g_ -i4 -r4 -l taf_ftl.log -flow
> taf_ftl_flow.log$FTL_TAF_FLAGS"
>
> Should work...
>
> Cheers
> -Patrick
>
>
>
>
> On Apr 10, 2009, at 7:25 PM, Suneet Dwivedi wrote:
>
>  Hi Patrick,
>> Thanks for your reply. My Makefile as well as staf both contains
>> "nonew_arg" as an argument/flag even then the error keeps coming. There was
>> no such problem with the same model code and same version of staf till day
>> before yesterday. Could you please suggest some way to avoid the error.
>> Thanks,
>> Suneet
>>
>> On Fri, Apr 10, 2009 at 6:45 PM, Patrick Heimbach <heimbach at mit.edu>
>> wrote:
>>
>> Hi Suneet,
>>
>> ideally you'd want to update the code :o)
>> If that's too cumbersome,
>> you should try using the TAF (or staf) option "-version" and use for
>> example 1.9.48
>> (you can add this manually in your Makefile in line
>> AD_TAF_FLAGS = ...
>>
>> If this does not work, let me know, and we'll need to have a word with
>> Fastopt.
>>
>> -Patrick
>>
>>
>>
>>
>> On Apr 10, 2009, at 6:35 PM, Suneet Dwivedi wrote:
>>
>> Hi Everybody,
>> >From yesterday, i am getting strange TAF errors while building adjoint of
>> my mode code. The error message says:
>>
>> ---------------------------------------------------------------------
>>  undefined option : -nonew_arg
>>
>>  Transformation of Algorithms in Fortran (TAF) Version 1.9.50
>>  Copyright 2000-2009 FastOpt GmbH, Hamburg, Germany
>>  All rights reserved.
>>  URL: http://www.FastOpt.de, Email: info at FastOpt.de
>>
>> and then finally build fails with the message
>>
>> the_model_main.o(.text+0x207): In function `the_model_main_':
>> the_model_main.f: undefined reference to `adthe_main_loop_'
>> make: *** [mitgcmuv_ad] Error 1
>> --------------------------------------------------------------------
>>
>> I found that this argument is no longer used in newer versions of MITgcm
>> adopt files. Is there any way by which i can still use the older version of
>> the MITgcm and avoid this error? Please help.
>>
>> Thanks,
>> Suneet
>>
>>
>>
>> _______________________________________________
>> MITgcm-support mailing list
>> MITgcm-support at mitgcm.org
>> http://mitgcm.org/mailman/listinfo/mitgcm-support
>>
>> ---
>> Patrick Heimbach | heimbach at mit.edu | http://www.mit.edu/~heimbach<http://www.mit.edu/%7Eheimbach>
>> MIT | EAPS 54-1518 | 77 Massachusetts Ave | Cambridge MA 02139 USA
>> FON +1-617-253-5259 | FAX +1-617-253-4464 | SKYPE patrick.heimbach
>>
>>
>> _______________________________________________
>> MITgcm-support mailing list
>> MITgcm-support at mitgcm.org
>> http://mitgcm.org/mailman/listinfo/mitgcm-support
>>
>> _______________________________________________
>> MITgcm-support mailing list
>> MITgcm-support at mitgcm.org
>> http://mitgcm.org/mailman/listinfo/mitgcm-support
>>
>
> ---
> Patrick Heimbach | heimbach at mit.edu | http://www.mit.edu/~heimbach<http://www.mit.edu/%7Eheimbach>
> MIT | EAPS 54-1518 | 77 Massachusetts Ave | Cambridge MA 02139 USA
> FON +1-617-253-5259 | FAX +1-617-253-4464 | SKYPE patrick.heimbach
>
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20090410/f4a20e93/attachment.htm>


More information about the MITgcm-support mailing list