Skip to content

Commit

Permalink
fix(export): 🚸 ogs_export: update input args to auto-create directo…
Browse files Browse the repository at this point in the history
…ries
  • Loading branch information
djmaxus committed Nov 22, 2024
1 parent 89603c5 commit fca0ec4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
matlab.mat

out/

# Created by https://www.toptal.com/developers/gitignore/api/matlab,microsoftoffice,latex
# Edit at https://www.toptal.com/developers/gitignore?templates=matlab,microsoftoffice,latex

Expand Down
8 changes: 6 additions & 2 deletions ogs_export.m
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
function [] = ogs_export(G, strata_trapped, output_prefix)
function [] = ogs_export(G, strata_trapped, output_folder)
arguments
G (1,1) struct
strata_trapped (1,1) struct
output_prefix char = 'model/gen/'
output_folder char = 'out'
end

mkdir(output_folder);

output_prefix = append(output_folder,'/');

write_mappings(output_prefix,G,strata_trapped.permeability ./ milli ./ darcy(),strata_trapped.idx);

generate_sfn(...
Expand Down

0 comments on commit fca0ec4

Please sign in to comment.