Bfrescox is a BAND integration combining statistical calibration capabilities with the frescox reaction code specifically for Continuum Discretized Coupled Channel (CDCC) calculations.
A BAND SDK v0.2 Community Policy compatibility documentation for frescox is contained in frescoxbandsdk.md.
This section describes how to install frescox to run a scattering code for
coupled-channels calculations
frescox is publicly available at the repo https://github.com/LLNL/Frescox; more detailed documentation for earlier versions of frescox can be found at http://www.fresco.org.uk
In order to install frescox:
-
Clone or download the repo https://github.com/LLNL/Frescox to your machine
-
Go to directory
Frescox/source, in which you will find amakefile -
Open
makefileand remove one of comment prefix#s between lines 39-60 to select the appropriate machine typeMACH=i386andMACH=intelhave been BAND tested for macOS and intel machines
-
To compile
frescox, go toFrescox/sourceand issue the following from your terminal:
make
make install
make clean-
If you obtain an error running
make:-
In line 69, there is an
include fx$(MACH).defto include a definition file in the source directory for the previously selected machine architecture; you may find that running the commands below produces an error such asmakefile:69: .def: No such file or directory-
If this
includedoes not work for your machine, comment outincludeby adding a#prefix, and then copy all lines infx$(MACH).def(for your specifiedMACHabove) to themakefilestarting from the line whereincludeis commented out -
As an example if you select
MACH=i386on lines 39-60, then you should copy all lines infxi386.deffile to themakefile
-
-
In line 72 (of the original, unedited
makefile), there is a lineLOCAL = f14$(MACH); you may find that you need to edit this line (e.g., because you receive afatal error: no input files; unwilling to write output files)-
If this line does not work with your architecture, replace
$(MACH)in this line with yourMACHdefined above -
As an example, if you have
MACH=i386, then replaceLOCAL = f14$(MACH)withLOCAL = f14i386
-
-
-
If you obtain an error
No such file or directoryrunningmake install:- It assumed that the directory
$(HOME)/binwexists; if it does not, you will need to create this directory (and probably theMACH-specific directory within it). Alternatively, you can replace references inmakefileto$(HOME)/binwto point to whatever location in which you want the frescox executables to reside.
- It assumed that the directory
-
To verify you have successfully compiled
frescox, go toFrescox/testdirectory from your terminal and run one of the tests provided in that directory-
As an example, type
frescox < lane20.nin > lane20.outto run a test with input filelane20.nin, and the output file is written tolane20.out -
If you obtain an error such as
frescox: command not found, this means that thefrescoxexecutable is not in your path. You should add the location of this executable (see above reference to a subdirectory of$(HOME)/binw)
-
In order to verify the code works as expected and perform Bayesian calibration, please see Tutorial I.
A tutorial that uses an interactive colab notebook and that was featured at BAND Camp 2021 is available in BANDCamp21.rst.