diff --git a/utilities/particlesPhasicFlow/CMakeLists.txt b/utilities/particlesPhasicFlow/CMakeLists.txt index 03b0f1c6..649d9ba0 100644 --- a/utilities/particlesPhasicFlow/CMakeLists.txt +++ b/utilities/particlesPhasicFlow/CMakeLists.txt @@ -8,6 +8,6 @@ empty/empty.cpp ) #set(link_lib phasicFlow Kokkos::kokkos Interaction Utilities) -set(link_lib phasicFlow Kokkos::kokkos Utilities) +set(link_lib phasicFlow Kokkos::kokkos Particles Utilities) pFlow_make_executable_install(particlesPhasicFlow source_files link_lib) diff --git a/utilities/particlesPhasicFlow/particlesPhasicFlow.cpp b/utilities/particlesPhasicFlow/particlesPhasicFlow.cpp index 1e3351b5..255caa0a 100755 --- a/utilities/particlesPhasicFlow/particlesPhasicFlow.cpp +++ b/utilities/particlesPhasicFlow/particlesPhasicFlow.cpp @@ -21,10 +21,11 @@ Licence: #include "positionParticles.hpp" #include "pointStructure.hpp" -//#include "setFields.hpp" +#include "setFields.hpp" #include "systemControl.hpp" #include "commandLine.hpp" #include "vocabs.hpp" +#include "baseShapeNames.hpp" //#include "readControlDict.hpp" @@ -95,14 +96,6 @@ int main( int argc, char* argv[] ) REPORT(1)<< "Created pStruct with "<< pStructPtr().size() << " points and capacity "<< pStructPtr().capacity()<<" . . ."<< END_REPORT; - //REPORT(1)<< "Writing pStruct to " << Control.time().path()+ pointStructureFile__<< END_REPORT<> allObjects; if(!positionOnly) { - WARNING<< "setFields is not active "<("shapeName"); + + REPORT(0)<< "Converting shapeName field to shapeIndex field"< pStructObj{nullptr}; - - if(!setOnly) - { - - // position particles based on the dict content - REPORT(0)<< "Positioning points . . . \n"< - ( - objectFile - ( - pointStructureFile__, - Control.time().path(), - objectFile::READ_NEVER, - objectFile::WRITE_ALWAYS - ), - finalPos - ); - - auto& pSruct = pStructObj().getObject(); - - REPORT(1)<< "Created pStruct with "<< pSruct.size() << " points and capacity "<< - pSruct.capacity()<<" . . ."<< endREPORT; - - REPORT(1)<< "Writing pStruct to " << pStructObj().path() << endREPORT< - ( - objectFile - ( - pointStructureFile__, - Control.time().path(), - objectFile::READ_ALWAYS, - objectFile::WRITE_NEVER - ) - ); - } - - - - if(!positionOnly) - { - - auto& pStruct = pStructObj().getObject(); - - auto& sfDict = cpDict.subDict("setFields"); - - setFieldList defValueList(sfDict.subDict("defaultValue")); - - for(auto& sfEntry: defValueList) - { - if( !sfEntry.setPointFieldDefaultValueNewAll(Control.time(), pStruct, true)) - { - ERR<< "\n error occured in setting default value fields.\n"<