ResInsight/OctavePlugin/OctaveScripts/SatNum.m
2016-11-25 10:24:17 +01:00

10 lines
276 B
Matlab

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);
riSetActiveCellProperty(GENERATED, "SOIL_IN_SATNUM_Eq_7");