MosGeo / BPSMAutoToolbox

This is the repository for the Stanford BPSM Automation Toolbox. The library can be used for creating and simulating basin and petroleum system models for studying probabilistic interactions.
https://bpsm.stanford.edu/
BSD 3-Clause "New" or "Revised" License
6 stars 4 forks source link

Displaying simulation output #9

Closed tanvidc closed 5 years ago

tanvidc commented 5 years ago

In PetroMod.m, line 40 should be ~exist instead of exist I think

MosGeo commented 5 years ago

You can define it three ways. Note that this is only for variables. if you are checking the existence of other types, e.g., file or folder, than true and false would not work. Right now, I am using the first way. I think the second way is better (and I actually switched to that in my other newer codes).

exist('isDisplayOutput', 'var') == false ~exist('isDisplayOutput', 'var') ~exist('isDisplayOutput', 'var') == true

tanvidc commented 5 years ago

You're right, I'm used to second way and didn't notice the ==false