Compiling Chemkin-II
A. Miyoshi

Compiling Chemkin-II minimal package

  This document describes how to compile the Chemkin-II minimal package.
* Compiling is not required to execute it on Windows using the binaries.

Compiling

Extracting source files

  • Following files will be extracted in the subdirectory CKmSrc by decompressing the downloaded CKmSrc.zip in an appropriate directory by using an unzipping tool.
    • Source files
      *.f *.h
    • Sample input files
      *.inp *.dat
    • Make files
      *.make

Selecting make file & memory model

  • Following make files are prepared.
    makeGnu.makeGNU Compilers (UNIX & Compatible Environment)
    makeIntelLinux.makeIntel Compilers (Linux Environment)
    makeIntelLinux64em.makeIntel Compilers (64 bit Linux Environment)
    makeIntelWin.makeIntel Compilers (Windows Environment)
  • Use  make  on UNIX and compatible environment including Cygwin and MinGW+MSYS and use  make  on Windows environment for setting-up, compiling and installing.   Here "(n)make" stands for "make" or "nmake".
    $ (n)make -f make_file_name target
  • The memory model is  large  by default.   Switch to  large  when memory larger then 2GB is required.
    $ (n)make -f make_file_name setlarge64em

Compiling

  • Invoke (n)make without target by using the make file selected above.
    $ (n)make -f make_file_name
  • Erase the temporary files by invoking the clean target of the make file after the successful compilation.
    $ (n)make -f make_file_name clean

Installing

  • By invoking the install target of the make file, the executables are moved to prescribed directory (default is the parent directory).
    $ (n)make -f make_file_name install
    To change the install directry to where the executables are moved, change INSTDIR in the .make file.