Building cgcamΒΆ
- To build the code do the following:
- Move into the
cgcam/src
directory. - Type
configure
to detect your compiler and to write the compiler.[spec,opt,debug] files. If theconfigure
command fails, make sure you have perl installed and do in fact have a mpi/fortran environment set up. Also check to see that you have the current directory listed on your search path, if not you will need to execute./configure
instead. If this is the case, you may want to consider adding the current directory to your search path by including a line likeexport PATH=$PATH:.
in your bourne shell variant startup file orsetenv PATH $PATH:.
in your c shell variant startup file. If you use a compiler other than intel, gcc, pgi, or cray, you will need to edit the compiler.[spec,opt,debug] files to suit your compiler. Note that the makefile reads the compiler information from the file compiler.spec. The files compiler.opt and compiler.debug are used to keep track of optimized and debug compiler flags. If you need to debug the code then domake debug
,make cgcam
. Once you are done debugging domake opt
,make cgcam
. - To build the cgcam code as well as the cart_mesh program, issue
- Move into the
make cgcam
make cart_mesh