News:

alphaMELTS 1.9 is available at the download and information site.
alphaMELTS 2 standalone & for MATLAB/Python are available on request
(see the Version 2 tab on the download site for more details).
For news of all MELTS software see the MELTS Facebook page.

Main Menu

Adiabat_1ph ignores environment variable.

Started by Lisa Simpson, December 07, 2006, 01:34:58 PM

Previous topic - Next topic

Lisa Simpson

I am using the isentropic_melt.dat example commands file that came with v1.7. The program runs fine with the default settings but I want to do isentropic calculations with an oxygen buffer. I uncommented ADIABAT_IMPOSE_FO2 but it doesn't make any difference to the results.  Why?

Lisa
Lisa Simpson, Springfield.

Paula

Hi Lisa,

To get ADIABAT_IMPOSE_FO2 to work you need to remove the '!', like you did, but you also need to give the variable a value, like 'true'.  Some environment variables in adiabat_1ph have to be set to a certain type of value (e.g. ADIABAT_DELTAT must be some kind of number) but many are just switches between 'TRUE' and 'FALSE' and can take any kind of value.  In adiabat_1ph, any environment variable that is unset or has no value is 'FALSE' and any environment variable that has a value is 'TRUE'.  So, for example, if you put either of the following in your commands_file they will be 'TRUE':

ADIABAT_IMPOSE_FO2   true
ADIABAT_IMPOSE_FO2   false

...but all of these will be 'FALSE':

!ADIABAT_IMPOSE_FO2   true
!ADIABAT_IMPOSE_FO2
ADIABAT_IMPOSE_FO2

Hope that helps!
Paula