63 |
STEP 2: |
STEP 2: |
64 |
###### |
###### |
65 |
Generate code for AD-related routines. |
Generate code for AD-related routines. |
66 |
|
|
67 |
Similar to step 1, but look in code_ad/ instead of code/ |
Similar to step 1, but look in code_ad/ instead of code/ |
68 |
|
|
69 |
To build: |
To build: |
70 |
-------- |
-------- |
71 |
o short version: |
o short version: |
72 |
--------------- |
--------------- |
73 |
|
|
74 |
../code_ad/genmake2 -of ../../../tools/build_options/linux_ia32_ifort -adof ../../../tools/adjoint_options/adjoint_f95 -mods ../code_ad |
../code_ad/genmake2 -of ../../../tools/build_options/linux_ia32_ifort -adof ../../../tools/adjoint_options/adjoint_f95 -mods ../code_ad |
75 |
make depend ; make cb2m ; \rm adcost_mod.F90 |
|
|
make makefile ; make small_f |
|
|
make ad_input_code.f |
|
|
make adtaf |
|
|
make allmods |
|
76 |
make adall |
make adall |
77 |
|
|
|
TAF-generated adjoint code has one bug: line |
|
|
adfc = 0.d0 |
|
|
needs to be replaced by |
|
|
adfc = 1.d0 |
|
|
(corresponds to seeding of dependent variable). |
|
78 |
|
|