Question QG-001:

How can I use user-coded subroutines on the PC Windows version?


From ADINA 7.5 onwards, the user-coded subroutine source files for a program module are installed by default if the module is selected for installation. If you are using a previous version of ADINA, please see section below on how to load the user-coded subroutine source files.

The user-coded subroutines are compiled into a dll (dynamic link library). You can modify the Fortran source files for the user-coded subroutines with a text editor and then compile a new dll using Digital Fortran 6.0 compiler.

The makefile to compile the user-coded subroutines is provided. To compile, open up a DOS window, go to the directory which contains the makefile and the Fortran files. Assuming you are modifying the user-coded subroutines for the ADINA program module,

cd "%ADINAHOME%\adina"

After modifying the Fortran file(s), execute the following two commands:


Please substitute ...\ with the full path name where your Digital Fortran is installed.

The first command sets up the proper Fortran environment. The second command compiles the modified subroutines and creates a new dll. If the compilation is successful, the new dll will be used when you next run the solution program.

Loading of User-Coded Subroutine Source Files:

For ADINA 7.4 and before, the user-coded subroutine source files are not installed by default. During installation, you need to select Custom installation.

Then, in the Select Components dialog, select the appropriate component (ADINA, ADINA-T, etc) and click on the Change button. See figure below.

Custom Install

In the Select Sub-components dialog, toggle on the Source Files item. Click on the Continue button and proceed with the installation.