++++++++++++++++++++++++++++++++++++++++++++ Step-by-step Instructions for compiling TOUGH2 using DIGITAL/Compaq Visual Fortran S. Finsterle, April 6, 2001 ++++++++++++++++++++++++++++++++++++++++++++ This file complements the TOUGH2 read.me file. It provides step-by-step instructions for compiling and linking, TOUGH2 on a PC using the DIGITAL/Compaq Visual Fortran compiler. 1. Preparation -------------- Following the instructions in the read.me file, copy all TOUGH2 source files into an installation directory, for example: C:\tough2 2. Developer Studio ------------------- Start DIGITAL/Compaq Visual Fortran's Developer Studio. 3. Create new Project --------------------- Select , Select , , tough2 C:\tough2 Check , Win32, 4. Add source files ------------------- Select , , Select the following source files (hold Ctrl-key): t2cg2.f (or t2cg22.f, if available) meshm.f eos3.f (or other EOS module) ma28.f t2f.f t2solv.f (t2cg1.f can be used in place of t2cg2.f and t2solv.f) tough2 5. Compiler settings -------------------- Select , : Win32 Release , blank blank : General Optimize for Speed In the window, add the following options: /alignment:dcommons /real_size:64 and delete /check:bounds Leave all other settings unchanged tough2.exe (or other convenient name for executable) 6. Compile and Link ------------------- , 7. Miscellaneous ---------------- A new executable must be built for each EOS module. For some modules, certain subroutines must be renamed to avoid duplicate entries (see instructions in read.me file). To redimension TOUGH2, adjust parameter statements in file T2: , T2 Modify parameter statements, save file, and rebuild TOUGH2 The configuration can be saved and reopened as a workspace.