Merge remote-tracking branch 'origin/cmake_support' into bugfixing
This commit is contained in:
1
src/lagrangian/cfdemParticle/.gitignore
vendored
Normal file
1
src/lagrangian/cfdemParticle/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
lnInclude
|
||||
@ -28,7 +28,8 @@ LIB_LIBS = \
|
||||
-lmeshTools \
|
||||
-llagrangian \
|
||||
-lmpi_cxx \
|
||||
-L$(CFDEM_LIGGGHTS_SRC_DIR) \
|
||||
-Wl,--whole-archive -l$(CFDEM_LIGGGHTS_LIB_NAME) -Wl,--no-whole-archive \
|
||||
-Wl,-rpath,$(CFDEM_LIGGGHTS_BIN_DIR) \
|
||||
-L$(CFDEM_LIGGGHTS_BIN_DIR) \
|
||||
-lliggghts \
|
||||
-L$(CFDEM_Many2ManyLIB_PATH) \
|
||||
-lcoupleMany2Many
|
||||
|
||||
@ -37,10 +37,10 @@ Description
|
||||
|
||||
#include <vector>
|
||||
//#include "math.h"
|
||||
#include "stdio.h"
|
||||
#include "string.h"
|
||||
#include "error.h"
|
||||
#include "ctype.h"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <error.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#define TOLERANCE_ORTHO 1e-10
|
||||
|
||||
|
||||
@ -50,9 +50,9 @@ SourceFiles
|
||||
#include "IFstream.H"
|
||||
|
||||
#if defined(version21) || defined(version16ext)
|
||||
#include "turbulenceModel.H"
|
||||
#include <turbulenceModel.H>
|
||||
#elif defined(version15)
|
||||
#include "RASModel.H"
|
||||
#include <RASModel.H>
|
||||
#endif
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
@ -36,7 +36,7 @@ Description
|
||||
#include "locateModel.H"
|
||||
#include "dataExchangeModel.H"
|
||||
#include "IOModel.H"
|
||||
#include "mpi.h"
|
||||
#include <mpi.h>
|
||||
#include "IOmanip.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
@ -35,7 +35,7 @@ Description
|
||||
#include "locateModel.H"
|
||||
#include "dataExchangeModel.H"
|
||||
|
||||
//#include "mpi.h" // only for debug reason
|
||||
//#include <mpi.h> // only for debug reason
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
|
||||
@ -26,7 +26,8 @@
|
||||
#export CFDEM_PROJECT_USER_DIR=$HOME/CFDEM/$LOGNAME-$CFDEM_VERSION-$WM_PROJECT_VERSION
|
||||
#export CFDEM_bashrc=$CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/bashrc
|
||||
#export CFDEM_LIGGGHTS_SRC_DIR=$HOME/LIGGGHTS/LIGGGHTS-PUBLIC/src
|
||||
#export CFDEM_LIGGGHTS_MAKEFILE_NAME=fedora_fpic
|
||||
#export CFDEM_LIGGGHTS_BIN_DIR=$HOME/LIGGGHTS/LIGGGHTS-PUBLIC/src-build
|
||||
#export CFDEM_LIGGGHTS_MAKEFILE_NAME=fedora_fpic # obsolete with CMake
|
||||
#export CFDEM_LPP_DIR=$HOME/LIGGGHTS/mylpp/src
|
||||
#export CFDEM_PIZZA_DIR=$HOME/LIGGGHTS/PIZZA/gran_pizza_17Aug10/src
|
||||
#. $CFDEM_bashrc
|
||||
|
||||
@ -161,7 +161,8 @@ compileLIGGGHTS()
|
||||
rm $logpath/$logfileName
|
||||
|
||||
#- change path
|
||||
cd $CFDEM_LIGGGHTS_SRC_DIR
|
||||
mkdir -p $CFDEM_LIGGGHTS_BIN_DIR
|
||||
cd $CFDEM_LIGGGHTS_BIN_DIR
|
||||
|
||||
#- header
|
||||
echo 2>&1 | tee -a $logpath/$logfileName
|
||||
@ -176,20 +177,18 @@ compileLIGGGHTS()
|
||||
if [[ $clean == "false" ]]; then
|
||||
echo "not cleaning LIGGGHTS"
|
||||
else
|
||||
rm $CFDEM_LIGGGHTS_SRC_DIR/"lmp_"$CFDEM_LIGGGHTS_MAKEFILE_NAME
|
||||
rm $CFDEM_LIGGGHTS_SRC_DIR/"lib"$CFDEM_LIGGGHTS_LIB_NAME".a"
|
||||
make clean-all 2>&1 | tee -a $logpath/$logfileName
|
||||
make clean 2>&1 | tee -a $logpath/$logfileName
|
||||
rm CMakeCache.txt 2>&1 | tee -a $logpath/$logfileName
|
||||
echo "cleaning LIGGGHTS"
|
||||
fi
|
||||
cmake $CFDEM_LIGGGHTS_SRC_DIR
|
||||
if [[ $WM_NCOMPPROCS == "" ]]; then
|
||||
echo "compiling LIGGGHTS on one CPU"
|
||||
make $CFDEM_LIGGGHTS_MAKEFILE_NAME 2>&1 | tee -a $logpath/$logfileName
|
||||
make 2>&1 | tee -a $logpath/$logfileName
|
||||
else
|
||||
echo "compiling LIGGGHTS on $WM_NCOMPPROCS CPUs"
|
||||
make $CFDEM_LIGGGHTS_MAKEFILE_NAME -j $WM_NCOMPPROCS 2>&1 | tee -a $logpath/$logfileName
|
||||
make -j $WM_NCOMPPROCS 2>&1 | tee -a $logpath/$logfileName
|
||||
fi
|
||||
make makelib 2>&1 | tee -a $logpath/$logfileName
|
||||
make -f Makefile.lib $CFDEM_LIGGGHTS_MAKEFILE_NAME 2>&1 | tee -a $logpath/$logfileName
|
||||
}
|
||||
|
||||
#==================================#
|
||||
@ -405,7 +404,7 @@ DEMrun()
|
||||
echo 2>&1 | tee -a $logpath/$logfileName
|
||||
|
||||
#- run applictaion
|
||||
$debugMode $CFDEM_LIGGGHTS_SRC_DIR/$CFDEM_LIGGGHTS_LIB_NAME < $solverName 2>&1 | tee -a $logpath/$logfileName
|
||||
$debugMode $CFDEM_LIGGGHTS_BIN_DIR/liggghts -in $solverName 2>&1 | tee -a $logpath/$logfileName
|
||||
|
||||
#- keep terminal open (if started in new terminal)
|
||||
#read
|
||||
@ -455,9 +454,9 @@ parDEMrun()
|
||||
|
||||
#- run applictaion
|
||||
if [ $machineFileName == "none" ]; then
|
||||
mpirun -np $nrProcs $debugMode $CFDEM_LIGGGHTS_SRC_DIR/$CFDEM_LIGGGHTS_LIB_NAME < $solverName 2>&1 | tee -a $logpath/$logfileName
|
||||
mpirun -np $nrProcs $debugMode $CFDEM_LIGGGHTS_BIN_DIR/liggghts -in $solverName 2>&1 | tee -a $logpath/$logfileName
|
||||
else
|
||||
mpirun -machinefile $machineFileName -np $nrProcs $debugMode $CFDEM_LIGGGHTS_SRC_DIR/$CFDEM_LIGGGHTS_LIB_NAME < $solverName 2>&1 | tee -a $logpath/$logfileName
|
||||
mpirun -machinefile $machineFileName -np $nrProcs $debugMode $CFDEM_LIGGGHTS_BIN_DIR/liggghts -in $solverName 2>&1 | tee -a $logpath/$logfileName
|
||||
fi
|
||||
|
||||
#- keep terminal open (if started in new terminal)
|
||||
|
||||
@ -35,7 +35,7 @@ Description
|
||||
#include "addToRunTimeSelectionTable.H"
|
||||
#include "voidFractionModel.H"
|
||||
|
||||
//#include "mpi.h"
|
||||
//#include <mpi.h>
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
|
||||
@ -30,7 +30,7 @@ Description
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "error.H"
|
||||
#include "mpi.h"
|
||||
#include <mpi.h>
|
||||
#include "clockModel.H"
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
@ -43,7 +43,7 @@ SourceFiles
|
||||
|
||||
#include "dataExchangeModel.H"
|
||||
#include "OFstream.H"
|
||||
#include "sys/stat.h"
|
||||
#include <sys/stat.h>
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
@ -44,7 +44,7 @@ SourceFiles
|
||||
#include "dataExchangeModel.H"
|
||||
#include "liggghtsCommandModel.H"
|
||||
#include "OFstream.H"
|
||||
#include "sys/stat.h"
|
||||
#include <sys/stat.h>
|
||||
#include "pair.h"
|
||||
#include "force.h"
|
||||
#include "forceModel.H"
|
||||
@ -54,7 +54,7 @@ SourceFiles
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "mpi.h"
|
||||
#include <mpi.h>
|
||||
#include <lammps.h> // these are LAMMPS include files
|
||||
#include <input.h>
|
||||
#include <atom.h>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#include "mpi.h"
|
||||
#include <mpi.h>
|
||||
#include "stdlib.h"
|
||||
#include "stdio.h"
|
||||
#include <stdio.h>
|
||||
#include "error.h"
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#ifndef ERROR_H
|
||||
#define ERROR_H
|
||||
|
||||
#include "mpi.h"
|
||||
#include <mpi.h>
|
||||
|
||||
class Error {
|
||||
public:
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#include "stdio.h"
|
||||
#include <stdio.h>
|
||||
#include "string.h"
|
||||
#include "files.h"
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#include "stdio.h"
|
||||
#include <stdio.h>
|
||||
#include "stdlib.h"
|
||||
#include "string.h"
|
||||
#include "irregular.h"
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#ifndef IRREGULAR_H
|
||||
#define IRREGULAR_H
|
||||
|
||||
#include "mpi.h"
|
||||
#include <mpi.h>
|
||||
|
||||
class Irregular {
|
||||
public:
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
#define LAMMPS_DATA_WRITE_H
|
||||
|
||||
#include "send2one.h"
|
||||
#include "stdio.h"
|
||||
#include <stdio.h>
|
||||
|
||||
class LAMMPSDataWrite : public Send2One {
|
||||
public:
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#include "mpi.h"
|
||||
#include "stdio.h"
|
||||
#include <mpi.h>
|
||||
#include <stdio.h>
|
||||
#include "many2many.h"
|
||||
#include "irregular.h"
|
||||
#include "memory.h"
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#ifndef MANY2MANY_H
|
||||
#define MANY2MANY_H
|
||||
|
||||
#include "mpi.h"
|
||||
#include <mpi.h>
|
||||
|
||||
class Many2Many {
|
||||
public:
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#include "mpi.h"
|
||||
#include "stdio.h"
|
||||
#include <mpi.h>
|
||||
#include <stdio.h>
|
||||
#include "stdlib.h"
|
||||
#include "many2one.h"
|
||||
#include "memory.h"
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#ifndef MANY2ONE_H
|
||||
#define MANY2ONE_H
|
||||
|
||||
#include "mpi.h"
|
||||
#include <mpi.h>
|
||||
|
||||
class Many2One {
|
||||
public:
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#include "mpi.h"
|
||||
#include <mpi.h>
|
||||
#include "stdlib.h"
|
||||
#include "stdio.h"
|
||||
#include <stdio.h>
|
||||
#include "memory.h"
|
||||
#include "error.h"
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#ifndef MEMORY_H
|
||||
#define MEMORY_H
|
||||
|
||||
#include "mpi.h"
|
||||
#include <mpi.h>
|
||||
|
||||
class Memory {
|
||||
public:
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#include "mpi.h"
|
||||
#include <mpi.h>
|
||||
#include "one2many.h"
|
||||
#include "memory.h"
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#ifndef ONE2MANY_H
|
||||
#define ONE2MANY_H
|
||||
|
||||
#include "mpi.h"
|
||||
#include <mpi.h>
|
||||
|
||||
#include <map>
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#include "mpi.h"
|
||||
#include <mpi.h>
|
||||
#include "stdlib.h"
|
||||
#include "stdio.h"
|
||||
#include <stdio.h>
|
||||
#include "send2one.h"
|
||||
#include "memory.h"
|
||||
#include "error.h"
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#ifndef SEND2ONE_H
|
||||
#define SEND2ONE_H
|
||||
|
||||
#include "mpi.h"
|
||||
#include <mpi.h>
|
||||
|
||||
class Send2One {
|
||||
public:
|
||||
|
||||
@ -44,7 +44,7 @@ SourceFiles
|
||||
#include "dataExchangeModel.H"
|
||||
#include "liggghtsCommandModel.H"
|
||||
#include "OFstream.H"
|
||||
#include "sys/stat.h"
|
||||
#include <sys/stat.h>
|
||||
#include "pair.h"
|
||||
#include "force.h"
|
||||
#include "forceModel.H"
|
||||
@ -52,7 +52,7 @@ SourceFiles
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "mpi.h"
|
||||
#include <mpi.h>
|
||||
#include <lammps.h>
|
||||
#include <input.h>
|
||||
#include <atom.h>
|
||||
|
||||
@ -34,7 +34,7 @@ Description
|
||||
#include "DiFeliceDrag.H"
|
||||
#include "addToRunTimeSelectionTable.H"
|
||||
|
||||
//#include "mpi.h"
|
||||
//#include <mpi.h>
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
@ -35,7 +35,7 @@ Description
|
||||
#include "addToRunTimeSelectionTable.H"
|
||||
#include "dataExchangeModel.H"
|
||||
|
||||
//#include "mpi.h"
|
||||
//#include <mpi.h>
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
|
||||
@ -35,7 +35,7 @@ Description
|
||||
#include "addToRunTimeSelectionTable.H"
|
||||
#include "dataExchangeModel.H"
|
||||
|
||||
//#include "mpi.h"
|
||||
//#include <mpi.h>
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
|
||||
@ -34,7 +34,7 @@ Description
|
||||
#include "MeiLift.H"
|
||||
#include "addToRunTimeSelectionTable.H"
|
||||
|
||||
//#include "mpi.h"
|
||||
//#include <mpi.h>
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
@ -34,7 +34,7 @@ Description
|
||||
#include "SchillerNaumannDrag.H"
|
||||
#include "addToRunTimeSelectionTable.H"
|
||||
|
||||
//#include "mpi.h"
|
||||
//#include <mpi.h>
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
@ -34,7 +34,7 @@ Description
|
||||
#include "checkCouplingInterval.H"
|
||||
#include "addToRunTimeSelectionTable.H"
|
||||
|
||||
//#include "mpi.h"
|
||||
//#include <mpi.h>
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
@ -44,7 +44,7 @@ SourceFiles
|
||||
|
||||
#include "forceModel.H"
|
||||
#include "dataExchangeModel.H"
|
||||
#include "mpi.h"
|
||||
#include <mpi.h>
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
@ -34,7 +34,7 @@ Description
|
||||
#include "particleCellVolume.H"
|
||||
#include "addToRunTimeSelectionTable.H"
|
||||
#include "dataExchangeModel.H"
|
||||
#include "mpi.h"
|
||||
#include <mpi.h>
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
|
||||
@ -34,7 +34,7 @@ Description
|
||||
#include "volWeightedAverage.H"
|
||||
#include "addToRunTimeSelectionTable.H"
|
||||
#include "dataExchangeModel.H"
|
||||
#include "mpi.h"
|
||||
#include <mpi.h>
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
|
||||
@ -34,7 +34,7 @@ Description
|
||||
#include "DiFeliceDragMS.H"
|
||||
#include "addToRunTimeSelectionTable.H"
|
||||
|
||||
//#include "mpi.h"
|
||||
//#include <mpi.h>
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
@ -36,7 +36,7 @@ Description
|
||||
#include "addToRunTimeSelectionTable.H"
|
||||
#include "mathematicalConstants.H"
|
||||
|
||||
#include "mpi.h"
|
||||
#include <mpi.h>
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
@ -33,7 +33,7 @@ Description
|
||||
|
||||
#include "noProbe.H"
|
||||
#include "addToRunTimeSelectionTable.H"
|
||||
#include "mpi.h"
|
||||
#include <mpi.h>
|
||||
#include "IOmanip.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
@ -33,7 +33,7 @@ Description
|
||||
|
||||
#include "particleProbe.H"
|
||||
#include "addToRunTimeSelectionTable.H"
|
||||
#include "mpi.h"
|
||||
#include <mpi.h>
|
||||
#include "IOmanip.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
@ -36,7 +36,7 @@ Description
|
||||
#include "locateModel.H"
|
||||
#include "dataExchangeModel.H"
|
||||
|
||||
#include "mpi.h"
|
||||
#include <mpi.h>
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
@ -36,7 +36,7 @@ Description
|
||||
#include "locateModel.H"
|
||||
#include "dataExchangeModel.H"
|
||||
|
||||
//#include "mpi.h"
|
||||
//#include <mpi.h>
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
|
||||
Reference in New Issue
Block a user