Skip to content

Commit

Permalink
Update mcfost.rst [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljprice committed May 1, 2023
1 parent 7810e91 commit aeacc4f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions docs/mcfost.rst
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ To compile phantom with mcfost on ozstar using this pre-compiled version, you wi
make MCFOST_LIBS=/fred/oz015/cpinte/mcfost/src/libtmp
./phantomsetup disc
To run the code with MCFOST you will need:
To run the code with MCFOST you will need::

export MCFOST_UTILS=/fred/oz015/mcfost/utils
./phantom disc
Expand All @@ -153,11 +153,19 @@ This will install mcfost into /usr/local/bin, libmcfost.a into /usr/local/lib/
and mcfost2phantom.mod into /usr/local/include. You can then compile phantom
linked against MCFOST by overriding the linker flags as follows::

~/phantom/scripts/writemake.sh disc > Makefile
make MCFOST=yes PREFIX=/opt/homebrew LIBCXX=-lc++
make setup MCFOST=yes PREFIX=/opt/homebrew LIBCXX=-lc++
./phantomsetup disc

Or, if you have an intel Mac::

~/phantom/scripts/writemake.sh disc > Makefile
make MCFOST=yes PREFIX=/usr/local LIBCXX=-lc++
make setup MCFOST=yes PREFIX=/usr/local LIBCXX=-lc++
./phantomsetup disc


To run the code with MCFOST you will need to create a directory where MCFOST utilities can be installed::

mkdir -p ~/mcfost-utils/
Expand Down

0 comments on commit aeacc4f

Please sign in to comment.