diff --git a/.gitignore b/.gitignore index c376910..d9655b2 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/ogs_export.m b/ogs_export.m index a38d990..a79b652 100644 --- a/ogs_export.m +++ b/ogs_export.m @@ -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(...