0

How should I compile TMVOC and use executable to run a simulation in the Windows 7 operating system?

Hello everyone,

I have an executable for TMVOC and I am not sure how to use it to run a simulation. I tried to run problem 7 mentioned in the manual on the Windows 7 PC, but it could not work. Could you describe in details how I should do? I am also interested in compiling the codes by myself using intel fortran. Could you tell me how to do it? There are more details on how to compile on a workstation and Linux/Unix system, but there is no information on windows. Thank you very much! I appreciate it.

Fang

9 replies

null
    • Finsterle GeoConsulting
    • Stefan_Finsterle
    • 11 yrs ago
    • Reported - view

    Hi Fang,

    To compile TMVOC (and any other TOUGH2 module), do the following:

    (1) Create a project that includes all the necessary source files mentioned in the manual and read.me file.

    (2) Set the maximum array dimensions necessary for the given EOS module and the problem size.

    (3) Rename duplicate subroutines. For TMVOC, these means renaming subroutines FGTAB, RELP, PCAP in file t2f.f (e.g., to xFGTAB, xRELP, xPCAP). You may also replace (or comment out) the CPU timing function in subroutine SEC.

    (4) Set the following compiler options (check your compiler manual for the appropriate flag):

    - Set the default real type to 8 bytes

    - Align common blocks by padding to 8 byte wide fields

    - Disable array bound checking

    (5) Once the executable (named, e.g., xtmvoc) is generated, copy it to your working directory (or add the directory where the executable resides to your command search path), then (on a PC) open a DOS Command Prompt window, go to the working directory, and (to run sample problem 7, after having prepared all the necessary input files) type:

    xtmvoc < r2dl > r2dl.out

    Most of this is described in the manual, and all of it is described in the read.me file that comes with the TOUGH2 V2.1 distribution.

    I hope this helps!

    Stefan


      • Haiyan_Zhou
      • 2 yrs ago
      • Reported - view

      Stefan Finsterle 

      Hi Stefan,

      This is Haiyan. I am trying to compile TMVOC on a linux platform. According to the user's manual, I need such files as t2fm.f, emvoc.f, and t2f.f etc (8 in total). However, I found eosmvoc.f90 only under the source code folder. (I am having TOUGH3V1.0) Can you please point me the right path to these files? 

      Thanks,

      Haiyan

      • kenny
      • 2 yrs ago
      • Reported - view

      Haiyan Zhou 

      You need to follow the instruction for compilation of TOUGH3. TMVOC is a module of tough3 and it can not be compiled separately.    

      • Haiyan_Zhou
      • 2 yrs ago
      • Reported - view

      kenny 

      Thanks for your reply.

      According to the Chapter 2 "Hardware requirements and code installation" of TMVOC user guide, we need to modify names of some subroutines to avoid duplicate names. Stefan mentioned similar thing in the above reply. But I cannot find the corresponding files mentioned in the user guide. Please see below for the command example to compile TMVOC and files required.

      If I follow the general compilation instruction for TOUGH3 to compile TMVOC, will I need to modify the names? Or the user guide is outdated?

      Haiyan

      • kenny
      • 2 yrs ago
      • Reported - view

      Haiyan Zhou 

      You do not need to modify the subroutine name, just strictly follow the guide for TOUGH3 compilation. The compilation guide provided in TMVOC is for tough2.

      • Haiyan_Zhou
      • 2 yrs ago
      • Reported - view

      kenny 

      Thanks for the clarification!

      Haiyan

      • Flybear
      • 2 yrs ago
      • Reported - view

      Stefan Finsterle  

      Hi, Stefan,

      Many thanks for your instruction in compiling the code. I have used the tough series code for many years, but 0 experience in compiling the source code. I need to increase the MNEL to 200000 in the flowpar file for the TOUGH-ECO2N module, but I do not know how to compile it into the exe file  using the Intel Fortran system.  Is it possible to post a video to show us the detailed steps how to compile it? I tried but failed.  Many thanks for your help.

      • Finsterle GeoConsulting
      • Stefan_Finsterle
      • 2 yrs ago
      • Reported - view

      Flybear It is not clear to me whether you want to compile TOUGH2 or TOUGH3 (I'm not aware of a "flowpar" file, either). Unfortunately, I do not have ready access to the Intel compiler nor TOUGH3. Maybe somebody else can help Flybear?

      Stefan

    • Fang_Wang
    • 11 yrs ago
    • Reported - view

    Thank you Stefan. This is really helpful and it works for the executable in the TMVOC folder! I will try to compile it by myself following your steps. Thank you again and I appreciate it!

    Fang

Content aside

  • 2 yrs agoLast active
  • 9Replies
  • 1797Views
  • 5 Following