From 503ee6be5e10a4de7a0cb826496d93c5fd0e13e0 Mon Sep 17 00:00:00 2001 From: Hamidreza Norouzi Date: Thu, 28 Sep 2023 07:44:39 +0330 Subject: [PATCH] Types folder updated --- CMakeLists.txt | 6 +- src/CMakeLists.txt | 12 +- src/phasicFlow/CMakeLists-old.txt | 87 +++++ src/phasicFlow/CMakeLists.txt | 77 +---- src/phasicFlow/containers/List/List/List.hpp | 3 +- src/phasicFlow/globals/error.cpp | 25 ++ src/phasicFlow/globals/error.hpp | 62 ++-- src/phasicFlow/globals/globalSettings.hpp | 5 +- src/phasicFlow/globals/pFlowMacros.hpp | 2 +- src/phasicFlow/streams/Stream/Istream.hpp | 67 ++-- src/phasicFlow/streams/Stream/Ostream.hpp | 65 ++-- src/phasicFlow/streams/TStream/iTstream.hpp | 45 ++- src/phasicFlow/streams/TStream/oTstream.hpp | 62 ++-- src/phasicFlow/streams/iStream/iIstream.hpp | 135 ++++---- src/phasicFlow/streams/iStream/iIstreamI.hpp | 15 +- src/phasicFlow/streams/iStream/iOstream.hpp | 19 +- src/phasicFlow/streams/token/token.hpp | 18 +- src/phasicFlow/streams/token/tokenI.hpp | 2 +- src/phasicFlow/typeSelection/typeInfo.hpp | 10 +- src/phasicFlow/types/basicTypes/Logical.hpp | 108 +++--- .../types/basicTypes/bTypesFunctions.cpp | 99 ++---- .../types/basicTypes/bTypesFunctions.hpp | 132 ++++---- .../types/basicTypes/builtinTypes.hpp | 10 +- src/phasicFlow/types/basicTypes/math.hpp | 26 +- src/phasicFlow/types/triple/triple.hpp | 307 +++++++++--------- src/phasicFlow/types/types.cpp | 10 +- src/phasicFlow/types/types.hpp | 31 +- 27 files changed, 718 insertions(+), 722 deletions(-) create mode 100644 src/phasicFlow/CMakeLists-old.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 6dc84aef..aef27fa7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -72,11 +72,11 @@ include_directories(src/setHelpers src/demComponent "${PROJECT_BINARY_DIR}") add_subdirectory(src) -add_subdirectory(solvers) +#add_subdirectory(solvers) -add_subdirectory(utilities) +#add_subdirectory(utilities) -add_subdirectory(DEMSystems) +#add_subdirectory(DEMSystems) #add_subdirectory(testIO) install(FILES "${PROJECT_BINARY_DIR}/phasicFlowConfig.H" diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b6a61171..ff2582b5 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,15 +1,15 @@ add_subdirectory(phasicFlow) -add_subdirectory(Integration) +#add_subdirectory(Integration) -add_subdirectory(Property) +#add_subdirectory(Property) -add_subdirectory(Particles) +#add_subdirectory(Particles) -add_subdirectory(Interaction) +#add_subdirectory(Interaction) -add_subdirectory(MotionModel) +#add_subdirectory(MotionModel) -add_subdirectory(Geometry) +#add_subdirectory(Geometry) diff --git a/src/phasicFlow/CMakeLists-old.txt b/src/phasicFlow/CMakeLists-old.txt new file mode 100644 index 00000000..b6b68815 --- /dev/null +++ b/src/phasicFlow/CMakeLists-old.txt @@ -0,0 +1,87 @@ + +list(APPEND SourceFiles +types/basicTypes/bTypesFunctions.cpp +types/basicTypes/Logical.cpp +types/types.cpp + +globals/error.cpp + +streams/token/tokenIO.cpp +streams/token/token.cpp +streams/iStream/IOstream.cpp +streams/iStream/iIstream.cpp +streams/iStream/iOstream.cpp +streams/Stream/Istream.cpp +streams/Stream/Ostream.cpp +streams/Fstream/iFstream.cpp +streams/Fstream/oFstream.cpp +streams/Fstream/fileStream.cpp +streams/TStream/iTstream.cpp +streams/TStream/oTstream.cpp +streams/streams.cpp + +dictionary/dictionary.cpp +dictionary/entry/iEntry.cpp +dictionary/entry/dataEntry.cpp +dictionary/twoPartEntry/twoPartEntry.cpp + +fileSystem/fileSystem.cpp + +commandLine/commandLine.cpp + +random/randomReal/randomReal.cpp +random/randomReal/randomReals.cpp + +Timer/Timer.cpp +Timer/Timers.cpp + +repository/Time/Time.cpp +repository/Time/timeControl.cpp +repository/systemControl/systemControl.cpp +repository/systemControl/dynamicLinkLibs.cpp +repository/repository/repository.cpp +repository/IOobject/objectFile.cpp +repository/IOobject/IOobject.cpp +repository/IOobject/IOfileHeader.cpp + +structuredData/box/box.cpp +structuredData/cells/cells.cpp +structuredData/cylinder/cylinder.cpp +structuredData/sphere/sphere.cpp +structuredData/iBox/iBoxs.cpp +structuredData/line/line.cpp +structuredData/zAxis/zAxis.cpp +structuredData/pointStructure/pointStructure.cpp +structuredData/pointStructure/mortonIndexing.cpp +structuredData/pointStructure/selectors/pStructSelector/pStructSelector.cpp +structuredData/pointStructure/selectors/selectBox/selectBox.cpp +structuredData/pointStructure/selectors/selectRange/selectRange.cpp +structuredData/pointStructure/selectors/selectRandom/selectRandom.cpp +structuredData/trisurfaceStructure/triSurface.cpp +structuredData/trisurfaceStructure/multiTriSurface.cpp +structuredData/trisurfaceStructure/stlFile.cpp +structuredData/peakableRegion/sphereRegion/sphereRegion.cpp +structuredData/peakableRegion/cylinderRegion/cylinderRegion.cpp +structuredData/peakableRegion/boxRegion/boxRegion.cpp +structuredData/peakableRegion/peakableRegion/peakableRegion.cpp +structuredData/peakableRegion/peakableRegions.cpp + +containers/Vector/Vectors.cpp +containers/Field/Fields.cpp +containers/symArrayHD/symArrays.cpp +containers/triSurfaceField/triSurfaceFields.cpp +containers/bitsetHD/bitsetHDs.cpp +containers/indexContainer/indexContainer.cpp + +setFieldList/setFieldList.cpp +setFieldList/setFieldEntry.cpp + +eventSubscriber/eventSubscriber.cpp +eventSubscriber/eventObserver.cpp) + +set(link_libs Kokkos::kokkos tbb) + +pFlow_add_library_install(phasicFlow SourceFiles link_libs) + +target_include_directories(phasicFlow PUBLIC ./Kokkos ./algorithms ./globals) + diff --git a/src/phasicFlow/CMakeLists.txt b/src/phasicFlow/CMakeLists.txt index b6b68815..b9ab1280 100644 --- a/src/phasicFlow/CMakeLists.txt +++ b/src/phasicFlow/CMakeLists.txt @@ -4,84 +4,11 @@ types/basicTypes/bTypesFunctions.cpp types/basicTypes/Logical.cpp types/types.cpp -globals/error.cpp - -streams/token/tokenIO.cpp -streams/token/token.cpp -streams/iStream/IOstream.cpp -streams/iStream/iIstream.cpp -streams/iStream/iOstream.cpp -streams/Stream/Istream.cpp -streams/Stream/Ostream.cpp -streams/Fstream/iFstream.cpp -streams/Fstream/oFstream.cpp -streams/Fstream/fileStream.cpp -streams/TStream/iTstream.cpp -streams/TStream/oTstream.cpp -streams/streams.cpp - -dictionary/dictionary.cpp -dictionary/entry/iEntry.cpp -dictionary/entry/dataEntry.cpp -dictionary/twoPartEntry/twoPartEntry.cpp - -fileSystem/fileSystem.cpp - -commandLine/commandLine.cpp - -random/randomReal/randomReal.cpp -random/randomReal/randomReals.cpp - -Timer/Timer.cpp -Timer/Timers.cpp - -repository/Time/Time.cpp -repository/Time/timeControl.cpp -repository/systemControl/systemControl.cpp -repository/systemControl/dynamicLinkLibs.cpp -repository/repository/repository.cpp -repository/IOobject/objectFile.cpp -repository/IOobject/IOobject.cpp -repository/IOobject/IOfileHeader.cpp - -structuredData/box/box.cpp -structuredData/cells/cells.cpp -structuredData/cylinder/cylinder.cpp -structuredData/sphere/sphere.cpp -structuredData/iBox/iBoxs.cpp -structuredData/line/line.cpp -structuredData/zAxis/zAxis.cpp -structuredData/pointStructure/pointStructure.cpp -structuredData/pointStructure/mortonIndexing.cpp -structuredData/pointStructure/selectors/pStructSelector/pStructSelector.cpp -structuredData/pointStructure/selectors/selectBox/selectBox.cpp -structuredData/pointStructure/selectors/selectRange/selectRange.cpp -structuredData/pointStructure/selectors/selectRandom/selectRandom.cpp -structuredData/trisurfaceStructure/triSurface.cpp -structuredData/trisurfaceStructure/multiTriSurface.cpp -structuredData/trisurfaceStructure/stlFile.cpp -structuredData/peakableRegion/sphereRegion/sphereRegion.cpp -structuredData/peakableRegion/cylinderRegion/cylinderRegion.cpp -structuredData/peakableRegion/boxRegion/boxRegion.cpp -structuredData/peakableRegion/peakableRegion/peakableRegion.cpp -structuredData/peakableRegion/peakableRegions.cpp - -containers/Vector/Vectors.cpp -containers/Field/Fields.cpp -containers/symArrayHD/symArrays.cpp -containers/triSurfaceField/triSurfaceFields.cpp -containers/bitsetHD/bitsetHDs.cpp -containers/indexContainer/indexContainer.cpp - -setFieldList/setFieldList.cpp -setFieldList/setFieldEntry.cpp - -eventSubscriber/eventSubscriber.cpp -eventSubscriber/eventObserver.cpp) +globals/error.cpp) set(link_libs Kokkos::kokkos tbb) pFlow_add_library_install(phasicFlow SourceFiles link_libs) -target_include_directories(phasicFlow PUBLIC ./Kokkos ./algorithms ./globals) +target_include_directories(phasicFlow PUBLIC ./globals) diff --git a/src/phasicFlow/containers/List/List/List.hpp b/src/phasicFlow/containers/List/List/List.hpp index e416ae92..f20bfaff 100644 --- a/src/phasicFlow/containers/List/List/List.hpp +++ b/src/phasicFlow/containers/List/List/List.hpp @@ -227,9 +227,8 @@ iIstream& operator >>(iIstream& is, List& lst); using int64List = List; using int32List = List; -using int16List = List; using int8List = List; -using labelList = List