mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Python: added tests and made Octave InputPropTest.m general
* removed non-general hard-coded grid sizes and added timing to Octave test * added two Pythonbenchmarks (sync and async) for the same test
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
addpath("/home/builder/Projects/ResInsightBuildDir/OctavePlugin");
|
||||
|
||||
tic();
|
||||
PORO = riGetActiveCellProperty("PORO");
|
||||
PERMX = riGetActiveCellProperty("PERMX");
|
||||
IJK = riGetMainGridDimensions();
|
||||
|
||||
GENERATED = PORO .* PERMX;
|
||||
|
||||
GENERATED(10:IJK(1):IJK(1)*IJK(2)*IJK(3)) = 100;
|
||||
GENERATED(10*IJK(1):1:11*IJK(1)) = 100;
|
||||
GENERATED(11*IJK(1):1:12*IJK(1)) = 100;
|
||||
GENERATED(12*IJK(1):1:13*IJK(1)) = 100;
|
||||
riSetActiveCellProperty(GENERATED, "PORO*PERMX");
|
||||
riSetActiveCellProperty(GENERATED, "PORO*PERMX");
|
||||
|
||||
elapsed_time = toc();
|
||||
disp("Elapsed time: "), disp(elapsed_time)
|
||||
Reference in New Issue
Block a user