![]() |
Prev | Next | add2lib.sh |
fortran
subdirectory of the distribution directory.
For the mysub example,
execute the following command in the distribution directory:
tr 'A-Z' 'a-z' < mysub.f > fortran/mysub.f
./add2lib.sh name
where
name
is the name of the Fortran routine.
For the mysub example, execute the following command
./add2lib.sh mysub
./add2lib.sh use_new_files
This command will copy the
*.new
files to the corresponding
files (but first it will back up the corresponding files
in
*.old
).
If
name
is not mysub
, the initial version of
example/name.cpp
will return test_none
.
You can edit this file to create a real test and example of
name
.
build.sh
, make sure that
F2C_DIR
, ADOLC_DIR
, and FADBAD_DIR
have the proper values for your system.
Then execute the command
./build.sh all
add2lib.sh
commands above by executing
./add2lib.sh use_old_files