Capabilities include: - Wave generation - Solitary wave using Boussinesq theory - Cnoidal wave theory - StokesI, StokesII, StokesV wave theory - Active wave absorption at the inflow/outflow boundaries based on shallow water theory Authors: - Javier Lopez Lara (jav.lopez@unican.es) - Gabriel Barajas (barajasg@unican.es) - Inigo Losada (losadai@unican.es)
26 lines
711 B
Bash
Executable File
26 lines
711 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ $WM_PROJECT == "foam" ]; then
|
|
ofversion=`echo $WM_PROJECT_VERSION | sed -e 's/\.x/-9/' -e 's/\./\'$'\n/g' -e 's/-/\'$'\n/g' | grep "[0-9]" | head -2 | tr -d '\n'`
|
|
else
|
|
ofversion=`echo $WM_PROJECT_VERSION"-0" | sed -e 's/\.x/-9/' -e 's/\./\'$'\n/g' -e 's/-/\'$'\n/g' -e 's/+/\'$'\n/g' -e 's/v/\'$'\n/g' | grep "[0-9]" | head -3 | tr -d '\n'`
|
|
fi
|
|
|
|
#IHC_dbg
|
|
echo $ofversion
|
|
#----
|
|
|
|
export OF_VERSION=$ofversion
|
|
|
|
wclean
|
|
|
|
wmake libso
|
|
|
|
if (( $? )) ; then
|
|
echo "\n\nIH Wave generation boundary conditions (V2.0) compilation failed"
|
|
exit; else
|
|
echo -e "\n\nIH Wave generation boundary conditions (V2.0) compiled successfully for $WM_PROJECT $WM_PROJECT_VERSION\n\n\n";
|
|
fi
|
|
|
|
wclean
|