-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfsp3_wrapper.jl
More file actions
53 lines (41 loc) · 1.58 KB
/
fsp3_wrapper.jl
File metadata and controls
53 lines (41 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
module FSP3Wrapper
# Include the core modules
include("core/bill_pfront.jl")
include("core/geomechanics_model.jl")
include("core/hydrology_calculations.jl")
include("core/utilities.jl")
include("graphs/julia_fsp_graphs.jl")
# Include the driver scripts
include("model_inputs_process.jl")
include("deterministic_geomechanics_process.jl")
include("probabilistic_geomechanics_process.jl")
include("deterministic_hydrology_process.jl")
include("probabilistic_hydrology_process.jl")
include("summary_process.jl")
function main(args)
if length(args) != 1
#println("Usage: fsp3_wrapper.jl <driver_file>")
#println("Available driver files: model_inputs, deterministic_geomechanics, probabilistic_geomechanics, deterministic_hydrology, probabilistic_hydrology, summary")
return
end
driver_file = args[1]
scratch_path = args[2]
driver_args = [scratch_path]
if driver_file == "model_inputs"
main(driver_args)
elseif driver_file == "deterministic_geomechanics"
main(driver_args)
elseif driver_file == "probabilistic_geomechanics"
main(driver_args)
elseif driver_file == "deterministic_hydrology"
main(driver_args)
elseif driver_file == "probabilistic_hydrology"
main(driver_args)
elseif driver_file == "summary"
main(driver_args)
else
#println("Invalid driver file: $driver_file")
#println("Available driver files: model_inputs, deterministic_geomechanics, probabilistic_geomechanics, deterministic_hydrology, probabilistic_hydrology, summary")
end
main(ARGS)
end # module