- Some improvement in minimizations. Still problems with zero concentrations.
The figure 2c of Green et al. (2016)
could be re-calculated with only minor issues in minimization.
- Applied some conventions to satisfy the prigs(1) and pedants(2) of gfortran 9.2:
(mostly variable declarations and loop definitions.)
- The length of phase names, abbreviations and solution names are tested, and a warning is
printed if they are too long. Up to now the automatic truncation did not really matter,
NAME(i) 16 characters (Names of phases)
ABK(i) 8 characters (Abbreviation of phases)
SOLNAM(i) 16 characters (Name of solution phases)
- Updated the Theriak-Domio Guide Moved information depending on operating systems to
"readme" and the homepage. Corrected the most embarrassing typos.
- Corrected some 'logical inconsistencies'(3) in Theriak output.
The programs were compiled with gfortran. Unfortunately gfortran does not produce a portable binary, because it does not include all libraries.
The easiest way of getting the programs to work, is to install gfortran:
The following did work on Windows 7 (in Parallels). If you know a better way, let me know.
Download the latest installer from
under MinGW for Win64 choose "snapshots"
at the bottom half of the page under MinGW-W64 Online Installer click on MinGW-W64-install.exe to download.
start MinGW-W64-install.exe (choose Architecture x86_64)
after mingw64 is installed, change the PATH to
(In Windows 7: Control Panel -> System -> Advanced System Settings -> Environment Variables)
From here on the installation becomes mystical.
There is no "make.exe" in mingw64. I found a 'make.exe' from an earlier MinGW in \Program Files (x86)\gfortran\bin, which I copied to the above folder.
Then "make all" (The first few times I got errors: "final link failed: permission denied". After several "make all" it worked.)
Mac OS X:
The following did work for macOS Catalina (The worst operating system ever)
1) Install XCode (from App Store).
2) also install the Command Line Tools for XCode (from Apple Developers)
3) Download the appropriate binary e.g. gfortran-9.2-bin.tar.gz from
then in a Terminal (working directory wherever you downloaded the ...bin.tar.gz), type:
4) gunzip gfortran-9.2-bin.tar.gz (if your browser didn't do it already)
5) sudo tar -xvf gfortran-9.2-bin.tar -C /
GFortran is included e.g. in Ubuntu. Type: sudo apt-get install gfortran
To re-compile, open a Terminal (Batch window), make "Programs" the working directory and type "make all".
If you own a different compiler, you might also want to re-compile the programs.
In most cases you can edit the Makefile and type "make all"
Useful for Mac OS X
Download cdto from https://github.com/jbtule/cdto.
(Download Latest cdto.zip,
unzip and "command-move" to toolbar in Finder)
Databases from THERMOCALC
The databases from THERMOCALC were translated to use with Theriak-Domino by Doug Tinkham, Professor of Metamorphic Geology at Laurentian University.
The THERIAK-DOMINO Input Files can be found here: http://dtinkham.net/peq.html.
There is also a Research Talk organized by Eric Kelly from the University of Texas at Austin.
If you want to join, follow the links in http://research-talk.org/forum/4
for Mac OS X