Skip to content
GitLab
Explore
Sign in
Register
This is an archived project. Repository and other project resources are read-only.
Commits on Source (1)
STYLE: add note about compilation location into Allwmake
· 73d6858f
Mark OLESEN
authored
Jun 10, 2022
- also remove mpi-specific locations
73d6858f
Hide whitespace changes
Inline
Side-by-side
Allwmake
View file @
73d6858f
...
...
@@ -2,10 +2,11 @@
cd
"
${
0
%/*
}
"
||
exit
# Run from this directory
targetType
=
libso
.
"
${
WM_PROJECT_DIR
:?
}
"
/wmake/scripts/AllwmakeParseArguments
#------------------------------------------------------------------------------
# Build into FOAM_USER_{APPBIN,LIBBIN} unless otherwise specified with
# -prefix or FOAM_MODULE_{APPBIN,LIBBIN} env varables
#------------------------------------------------------------------------------
moduleName
=
"external-solver (petsc)"
echo
"========================================"
...
...
src/petsc4Foam/Allwclean
View file @
73d6858f
...
...
@@ -3,9 +3,19 @@ cd "${0%/*}" || exit # Run from this directory
.
${
WM_PROJECT_DIR
:?
}
/wmake/scripts/wmakeFunctions
# The wmake functions
# -----------------------------------------------------------------------------
rm
-f
$FOAM_LIBBIN
/libpetscFoam
*
# Cleanup library
rm
-f
$FOAM_SITE_LIBBIN
/libpetscFoam
*
# ... extra safety
rm
-f
$FOAM_USER_LIBBIN
/libpetscFoam
*
# ... extra safety
# Remove library files
# - regular and mpi-specific locations
for
libDir
in
"
$FOAM_LIBBIN
"
"
$FOAM_SITE_LIBBIN
"
"
$FOAM_USER_LIBBIN
"
do
if
[
-d
"
$libDir
"
]
then
for
dir
in
"
$libDir
"
"
$libDir
/
$FOAM_MPI
"
do
rm
-f
"
$dir
"
/libpetscFoam
*
done
fi
done
# Cleanup generated files - remove entire top-level
removeObjectDir
"
$PWD
"
...
...
src/petsc4Foam/Allwmake
View file @
73d6858f
#!/bin/sh
cd
${
0
%/*
}
||
exit
1
# Run from this directory
cd
"
${
0
%/*
}
"
||
exit
# Run from this directory
targetType
=
libso
.
"
${
WM_PROJECT_DIR
:?
}
"
/wmake/scripts/AllwmakeParseArguments
.
"
${
WM_PROJECT_DIR
:?
}
"
/wmake/scripts/have_petsc
...
...