Windows
To use the library of XBeach you have to use the VS2010 solution (in the VS2010 directory). The xbeach.dll will be made if you compile the XBeach.Library project file.
Linux
Tip |
---|
Make sure you have at least libtool 2.0 because older versions did not include support for fortran90 |
The XBeach library is made by default. The result of just running configure && make is:
- an xbeach executable
- a .libs directory
The xbeach executable is a shell script. The .libs directory contains the real executable and the static and dynamic libraries. If you install xbeach by using "make install" the shell script will be replaced by the real executable in the default path (/usr/local/bin) or in the path defined by the --prefix option of the configure script.
Code Block |
---|
# this will put xbeach in the /home/user/xbeach-r1234/bin directory ./configure --prefix=/home/user/xbeach-r1234 && make install # this will put xbeach shell script + .libs directory in the current directory ./configure & make # this will create an xbeach wrapper script and .libs directory for multiple versions mkdir r1234 mkdir r1235 svn up -r1234 cd r1234 ../configure make cd ../r1235 ../configure make # this will make xbeach versions in multiple directories mkdir ~/xbeachr1234 mkdir ~/xbeachr1235 svn up -r1234 ./configure --prefix=$(cd;pwd)/xbeachr1234 make install make clean svn up -r1235 ./configure --prefix=$(cd;pwd)/xbeachr1235 make install # this debugs xbeach ./libtool --mode=execute gdb ./xbeach # this shows what xbeach is linked against ./libtool --mode=execute ldd ./xbeach # otool -L in OSX # this debugs xbeach in mpi in 2 different terminals mpirun -np 2 xterm -e ./libtool --mode=execute gdb ./xbeach |