Commit Graph

14 Commits

Author SHA1 Message Date
e5dfd4b4eb Simplified twoWayMPI
The code seems to be derived from the LAMMPS COUPLE library. The original COUPLE code
allowed using a subset of the global processors for the coupled code. Some fractions
of that code remained, but on their own don't make sense anymore. Since no additional
colors are assigned to processors, MPI_Comm_split effectively just duplicates the
global communicator, which can be easily done using MPI_Comm_dup.

The second simplification is that the code tried to limit IO to MPI rank 0. The filename
of the input script was read in by one MPI rank and then broadcasted to all other ranks.
While from the outside this seems to make sense from an MPI programmer standpoint, it does
not take the OpenFOAM implementation into account. IODictionary is already multi-processor
aware. Reading operations are done only on the master processor. This means the dictionary
is already in memory for each MPI processor at this point in time and lookup() is an
in-memory operation.
2015-03-31 11:36:31 +02:00
a1d8c61241 merge with CFDEMcoupling-PUBLIC 2.9.0 2015-03-25 14:23:49 +01:00
1307a0ef22 bug fixing by const correctness
also use static_cast instead of old-style casts!
2015-03-24 12:54:54 +01:00
2e72cfa774 remove extra semicolons 2015-03-24 11:47:10 +01:00
59adfbe6ac Changes system header includes from "" to <> syntax
This avoids irritating warnings of wmake about it not finding certain headers
(e.g. system headers). Similar things were necessary in some headers of the
LIGGGHTS code. While these did not cause compilation errors, they messed up
the compilation output with hundrets of false alarms. Not very helpful if
you're trying to find out what went wrong.

One special case is the change from RASModel.H to turbulenceModel.H in
cfdemCloud.H. Between major OpenFOAM versions there was a change of how
turbulence models were implemented. While the CFDEMcoupling code uses
preprocessors to allow compatibility, the wmkdepend utility is too simple
to understand this. It does not evaluate #ifdef constructs and just looks
for #include lines. Therefore it tries to access RASModel.H in newer
versions of OpenFOAM, which no longer exists.

To circumvent this issue, both includes were changed from "" to <> syntax.
This suppresses the warning and compiles, since the OpenFOAM header is in
the include path anyway.
2015-03-01 20:25:17 +01:00
89fa69ab8d release on 2014-07-04_08-57-37 2014-07-04 08:57:38 +02:00
dd31a87772 release on 2014-05-13_08-58-58 2014-05-13 08:58:58 +02:00
53fa4ccc9b release on 2013-02-20_19-09-21 2013-02-20 19:09:21 +01:00
1f885cf941 release on 2013-02-06_21-55-59 2013-02-06 21:55:59 +01:00
ef077351ce release on 2013-01-10_16-39-45 2013-01-10 16:39:45 +01:00
9caff39803 release on 2013-01-07_19-24-25 2013-01-07 19:24:25 +01:00
0323774ed4 release on 2012-07-17_15-56-10 2012-07-17 15:56:10 +02:00
811a525493 init 2012-07-17 15:55:00 +02:00
43118878fa release on 2012-07-17_15-53-04 2012-07-17 15:53:04 +02:00