Skip to content

Commit

Permalink
Merge pull request #139 from mabarnes/machine-setup-message-fix
Browse files Browse the repository at this point in the history
Better suggestion for putting .julia locally within the repo in `machine_setup.sh`
  • Loading branch information
johnomotani authored Oct 25, 2023
2 parents 80ab725 + 4549acf commit 9a3fe98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions machines/machine_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,11 @@ echo
JULIA_DIRECTORY=$JULIA_DEPOT_PATH
echo "It can be useful or necessary to set a non-default location for the "
echo ".julia directory. Leave this empty if the default location is OK."
echo "Enter the current directory '.' to isolate the julia used for this "
echo "instance of moment_kinetics - this might be useful to ensure a 'clean'"
echo "install or to check whether some error is related to conflicting or "
echo "corrupted dependencies or cached precompilation files, etc."
echo "Enter a name for a subdirectory of the current directory, e.g. "
echo "'.julia', to isolate the julia used for this instance of "
echo "moment_kinetics - this might be useful to ensure a 'clean' install or "
echo "to check whether some error is related to conflicting or corrupted "
echo "dependencies or cached precompilation files, etc."
echo "Enter location that should be used for the .julia directory [$JULIA_DIRECTORY]:"
# Use '-e' option to get path auto-completion
read -e -p "> " input
Expand Down
2 changes: 1 addition & 1 deletion src/load_data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function load_variable(file_or_group::NCDataset, name::String)
if size(file_or_group[name].var) == ()
var = file_or_group[name].var[]
else
var = file_or_group[name].var[:]
var = copy(file_or_group[name].var)
end
if isa(var, Char)
var = (var == Char(true))
Expand Down

0 comments on commit 9a3fe98

Please sign in to comment.