Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/teuben/nemo
Browse files Browse the repository at this point in the history
  • Loading branch information
teuben committed Dec 7, 2023
2 parents af0f426 + 4c70497 commit 580b509
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
7 changes: 7 additions & 0 deletions scripts/csh/mkmh97.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ As in many NEMO programs, units are virial (N-body) units.

4. **fixed=**: if set to 1, use a fixed potential for galaxy-1. [0]

4. **potname=**: if **fixed=1**, this is the potname. [plummer]

4. **potpars=**: if **fixed=1**, this is the potpars. [0,1,3*pi/16]

4. **step=**: step time when full snapshots are stored. 1 is probably ok,
for movies you probably need 0.1. For very large values of nbody a larger value for the step
is probably adviced, unless you have a lot of disk space. Perhaps step=5. [1.0]
Expand Down Expand Up @@ -159,6 +163,9 @@ The following files should be present, the example is for run=run0:
final2cm.tab Table of cumulative mass vs. radius
final2u.ccd Final bound particles of Galaxy-2
final2u.snap
fixed-path.tab Integration of (single particle) radial orbit
fixed1.tab
fixed2.tab
init.ccd.png Initial conditions
init.plot.png
massg2g1.png Cumulative mass of G2 around the center of G1
Expand Down
10 changes: 6 additions & 4 deletions src/scripts/install_anaconda3
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ version=2023.09-0 # 3.11.5


dir=$(pwd)/anaconda3 # where anaconda will be located
wget=wgetc # use wgetc is you have my cashing version
wget=wgetc # use wgetc is you have my cashing version (wget=curl is also allowed,
os=$(uname -s) # Handles Linux or Darwin, sorry no Windows
cpu=$(uname -m) # Handles Linux or Darwin, sorry no Windows

Expand All @@ -47,17 +47,19 @@ if [ "$os" = "Darwin" ]; then
fi

mc3=$(printf $url $version $os $cpu)
$wget $mc3

msh=$(basename $mc3)

if [ $wget = "curl" ]; then
curl $mc3 -o $msh
else
$wget $mc3
fi

if [ ! -e $msh ]; then
echo "File $msh not found. Wrong version=$version ?"
exit 0
fi


bash $msh -b -p $dir

export PATH="$dir/bin:$PATH"
Expand Down

0 comments on commit 580b509

Please sign in to comment.