For Mac users: 1. Copy nushellx.zip and nux.zip files to a directory with a relatively short path name (/home/aaa/ for example) 2. Extract folders 3. Find instruction manual (help.pdf) and detailed formalism (NuShellX.pdf) in nushellx/help. Follow Sections 2.2 and 2.4 of the manual to create a .bash_profile with the necessary environment variables. Although the manual contains instructions to set up the code, you must follow those below because we will use some features that are not included in the standard package. However, note that the export PATH instruction refers to the linux executables (whereas you should use $nuxhome/aaa/nushellx/mac/bin-mac-intel:$PATH) and there is an error in the export nushellx_sps, which should be $nuxhome/aaa/nushellx/sps to coincide with the structure of Section 2.2 4. Add folder nushellx/mac/bin-mac-intel to your path 5. Go to nushellx/help/ne20 directory 6. Make a new directory, i.e. test 7. Copy ne20.ans and ne20t.ans to test 8. Type shell ne20.ans and then run the batch file as instructed (i.e. type . ne20.bat ) 9. Type shell ne20t.ans and then run the batch file as instructed (i.e. type . ne20t.bat ) 10. Check to see that you've recreated the results in the nushellx/help/ne20 directory. For instance, open the ne20b.lpt files in both directories and check that they have the same output. Be sure that *lpe and *obd files were created and there were no obvious errors on the console output. On my mac, I get an error in the cps program which prevents the *eps files from being created. If this is the case, consider the code to be working but contact me to obtain a new version of cps.for. Skip SECTION A and go straight to step 11. If there were problems running the ne20 test case, you must compile the executables on your own machine following the next set of instructions. SECTION A % % start of section A % A1. In nushellx directory, create a new directory for mac executables (e.g., bin-mac) A2. From nux directory, go to bab-unix directory Compile x.for files via the command ifort -O3 -o x x.for where x = nucp,nucpe,nudel,nudela,numake,numd,nuput,nuren Copy these 8 executables to bin-mac along with *.bau files A3. From nux directory, go to nubab directory Compile x.for files via the command ifort -O3 -o x x.for where x= beta,cps,gamma,levp,mass,nuaddint,nuaddlsf,nulev,nulsf,save,shell,shella,toi Compile y.for files via the command ifort -O3 -c y.for where y=densgi,dens1,dens2,dens3,dens4,dens5,dens6,denspsn,densfch,densres,densran Link via the command ifort -O3 -o dens densgi.o dens1.o dens2.o dens3.o dens4.o dens5.o dens6.o densfch.o denspsn.o densres.o densran.o Copy these 14 executables to bin-mac (13 x files plus dens) A4. From nux directory, go to nushellx directory Compile x1.f90 files via the command ifort -reentrancy -assume buffered_io -assume byterecl -heap-arrays -openmp -o x1 NuCommon.f90 x1.f90 where x1=NuDiop Compile x2.f90 files via the command ifort -reentrancy -assume buffered_io -assume byterecl -heap-arrays -openmp -o x2 NuCommon.f90 NuModules.f90 x2.f90 where x2=NuBasis,NuDZOper,NuOper,NuOrth,NuMatrix,NuProj,NuPSLevel,NuTrx Compile x3.f90 files via the command ifort -reentrancy -assume buffered_io -assume byterecl -heap-arrays -openmp -o x3 NuCommon.f90 NuModules.f90 NuCommonX.f90 Sorts.f90 x3.f90 where x3=NuClx,NuVec,NuOpm Compile x4.f90 files via the command ifort -reentrancy -assume buffered_io -assume byterecl -heap-arrays -openmp -o x4 NuCommon.f90 NuModules.f90 NuCommonX.f90 Sorts.f90 SOrder.f90 x4.f90 where x4=NuDZop,NuOp,NuTra Compile x5.f90 files via the command ifort -reentrancy -assume buffered_io -assume byterecl -heap-arrays -openmp -o x5 NuCommon.f90 NuModules.f90 NuCommonX.f90 Sorts.f90 SOrder3.f90 x5.f90 where x5=NuOpd,NuOpdZ Compile the last executables via the commands ifort -reentrancy -assume buffered_io -assume byterecl -heap-arrays -openmp -o NuShellX NuCommon.f90 NuModules.f90 NuShellx.f90 ifort -reentrancy -assume buffered_io -assume byterecl -heap-arrays -openmp -o NuTRL NuCommon.f90 NuModules.f90 NuCommonX.f90 SOrder.f90 NuCoreX-TRL.f90 ifort -reentrancy -assume buffered_io -assume byterecl -heap-arrays -openmp -o NuTRLZ NuCommon.f90 NuModules.f90 NuCommonX.f90 SOrder.f90 NuCoreXZ.f90 ifort -reentrancy -assume buffered_io -assume byterecl -heap-arrays -openmp -o NuXpct NuCommon.f90 NuModules.f90 NuCommonX.f90 SOrder.f90 NuCoreXE.f90 ifort -reentrancy -assume buffered_io -assume byterecl -heap-arrays -openmp -o NuLnz NuCommon.f90 NuModules.f90 NuCommonX.f90 SOrder.f90 Sorts.f90 NuCoreX.f90 Copy all 22 executables to bin-mac A5 Copy libiomp5.dylib from nushellx/mac/bin-mac-intel to bin-mac % % End of section A % 11. From nux directory, go to ham directory Compile x.for files via the command ifort -O3 -o x x.for where x = ham,hamcof,hamint,hamspa,hamspe,spep Copy these 6 executables to your bin directory (I now refer to a general bin directory since the name is different depending on whether you followed Section A or not) 12. From nux directory, go to hamre directory. Type make Rename vrenorm.exe to renorm and copy to your bin directory 13. From nux directory, go to hamve directory. Copy the compve.dat file which was provide into the hamve directory Type source compve.dat Copy veff to your bin directory 14. Put your bin directory in your path, if it's not already there 15. Repeat test of ne20 from steps 7-10 to ensure that code is working Based on different versions of Intel Fortran, your dynamic libraries might not be updated automatically. If you get an error that a library file cannot be found while running a nushellx calculation, add the following line to your .bash_profile export DYLD_LIBRARY_PATH=/opt/intel/lib:$DYLD_LIBRARY_PATH