diff --git a/applications/test/memInfo/Make/files b/applications/test/memInfo/Make/files new file mode 100644 index 0000000000..c42564e8fc --- /dev/null +++ b/applications/test/memInfo/Make/files @@ -0,0 +1,3 @@ +memInfo.C + +EXE = $(FOAM_USER_APPBIN)/memInfo diff --git a/applications/test/memInfo/Make/options b/applications/test/memInfo/Make/options new file mode 100644 index 0000000000..e69de29bb2 diff --git a/applications/test/memInfo/memInfo.C b/applications/test/memInfo/memInfo.C new file mode 100644 index 0000000000..fb20be6d8d --- /dev/null +++ b/applications/test/memInfo/memInfo.C @@ -0,0 +1,19 @@ +#include "memInfo.H" +#include "IOstreams.H" +#include "List.H" +#include "vector.H" + +using namespace Foam; + +int main() +{ + memInfo m; + + Info<< m << endl; + + List l(10000000, vector::one); + + Info<< m.update() << endl; + + return 0; +} diff --git a/applications/utilities/parallelProcessing/reconstructPar/reconstructPar.C b/applications/utilities/parallelProcessing/reconstructPar/reconstructPar.C index 559bb4a715..8d0867f0ed 100644 --- a/applications/utilities/parallelProcessing/reconstructPar/reconstructPar.C +++ b/applications/utilities/parallelProcessing/reconstructPar/reconstructPar.C @@ -56,6 +56,14 @@ int main(int argc, char *argv[]) "specify a list of fields to be reconstructed. Eg, '(U T p)' - " "regular expressions not currently supported" ); + argList::addOption + ( + "lagrangianFields", + "list", + "specify a list of lagrangian fields to be reconstructed. Eg, '(U d)' -" + "regular expressions not currently supported, " + "positions always included." + ); argList::addBoolOption ( "noLagrangian", @@ -73,6 +81,20 @@ int main(int argc, char *argv[]) const bool noLagrangian = args.optionFound("noLagrangian"); + HashSet selectedLagrangianFields; + if (args.optionFound("lagrangianFields")) + { + if (noLagrangian) + { + FatalErrorIn(args.executable()) + << "Cannot specify noLagrangian and lagrangianFields " + << "options together." + << exit(FatalError); + } + + args.optionLookup("lagrangianFields")() >> selectedLagrangianFields; + } + // determine the processor count directly label nProcs = 0; while (isDir(args.path()/(word("processor") + name(nProcs)))) @@ -403,84 +425,96 @@ int main(int argc, char *argv[]) cloudName, mesh, procMeshes.meshes(), - sprayObjs + sprayObjs, + selectedLagrangianFields ); reconstructLagrangianFieldFields