ResInsight/OctavePlugin/OctaveScripts/SatNum.m

10 lines
276 B
Mathematica
Raw Normal View History

2016-11-25 03:24:17 -06:00
SATNUM = riGetActiveCellProperty("SATNUM");
SOIL = riGetActiveCellProperty( "SOIL");
# Set all SOIL data to 0.0 for all cells with SATNUM different
# from 7 for timestep 1
GENERATED = (SATNUM == 7) .* SOIL(:, 1);
2016-11-25 03:24:17 -06:00
riSetActiveCellProperty(GENERATED, "SOIL_IN_SATNUM_Eq_7");