tOcean.id is false if no file is read - Granular.jl - Julia package for granula… | |
git clone git://src.adamsgaard.dk/Granular.jl | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 9aeb0b860c9d13d8f961e8e5ecdd236d43d695a0 | |
parent 89b95b4d0410273d568677bcb6242c49b1019ef1 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Mon, 24 Apr 2017 21:34:16 -0400 | |
Ocean.id is false if no file is read | |
Diffstat: | |
M src/datatypes.jl | 2 +- | |
M src/ocean.jl | 2 +- | |
2 files changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/src/datatypes.jl b/src/datatypes.jl | |
t@@ -129,7 +129,7 @@ https://mom6.readthedocs.io/en/latest/api/generated/pages/… | |
dimensions correspond to placement in `[xh, yq, zi, time]`. | |
=# | |
type Ocean | |
- input_file::String | |
+ input_file::Any | |
time::Array{Float64, 1} | |
diff --git a/src/ocean.jl b/src/ocean.jl | |
t@@ -1,6 +1,6 @@ | |
"Returns empty ocean type for initialization purposes." | |
function createEmptyOcean() | |
- return Ocean("", | |
+ return Ocean(false, | |
zeros(1), | |
zeros(1), | |
zeros(1), |