Skip to content

Commit 73f5da7

Browse files
committed
feat(export): ✨ MULT[XYZ] for OPM (optional)
1 parent 12c8a17 commit 73f5da7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/export/opm_export.m

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
args.output_folder char = 'opm'
55
args.default_poro (:,1) double = []
66
args.default_perm (:,3) double = []
7+
args.multxyz (:,3) double {mustBeNonnegative} = []
78
end
89

910
mkdir(args.output_folder);
@@ -96,6 +97,14 @@
9697

9798
% Write single SGWFN file: 1 + NX*NY*NZ*3 tables
9899
write_sgwfn(strata_trapped,output_prefix);
100+
101+
% WRITE MULT[XYZ] if provided
102+
if ~isempty(args.multxyz)
103+
write_keyword([output_prefix,'MULTX.inc'],'MULTX',args.multxyz(:,1),0,0);
104+
write_keyword([output_prefix,'MULTY.inc'],'MULTY',args.multxyz(:,2),0,0);
105+
write_keyword([output_prefix,'MULTZ.inc'],'MULTZ',args.multxyz(:,3),0,0);
106+
end
107+
99108
end
100109

101110
function write_sgwfn(strata_trapped,prefix)

0 commit comments

Comments
 (0)