|
Nektar++
|
#include <cmath>#include <cstdio>#include <iomanip>#include <iostream>#include <LibUtilities/BasicUtils/Field/Field.hpp>#include <LibUtilities/BasicUtils/Math/Math.hpp>#include <LibUtilities/BasicUtils/Utils/UtilsKernels.hpp>#include <LibUtilities/LoopExecution/LoopExecution.hpp>#include <LibUtilities/BasicUtils/ErrorUtil.hpp>#include <LibUtilities/BasicUtils/Timer.h>#include <MultiRegions/DisContField.h>#include <MultiRegions/ExpList.h>#include <SpatialDomains/MeshGraphIO.h>#include <CompressibleFlowSolverRedesign/AdvTraceFluxCFE/AdvTraceFluxCFEOp.hpp>#include <LibUtilities/BasicUtils/StringUtils.hpp>Go to the source code of this file.
Macros | |
| #define | LIKWID_MARKER_INIT |
| #define | LIKWID_MARKER_THREADINIT |
| #define | LIKWID_MARKER_SWITCH |
| #define | LIKWID_MARKER_REGISTER(regionTag) |
| #define | LIKWID_MARKER_START(regionTag) |
| #define | LIKWID_MARKER_STOP(regionTag) |
| #define | LIKWID_MARKER_CLOSE |
| #define | LIKWID_MARKER_GET(regionTag, nevents, events, time, count) |
Functions | |
| template<typename TData > | |
| static Array< OneD, TData > | FlattenCompMajor (const Array< OneD, Array< OneD, TData > > &a, unsigned int ncomp, size_t npts) |
| template<typename TData > | |
| static void | UnflattenCompMajor (const Array< OneD, TData > &flat, Array< OneD, Array< OneD, TData > > &a, unsigned int ncomp, size_t npts) |
| void | GetExpectedResults (unsigned int spaceDim, size_t npts, const Array< OneD, Array< OneD, double > > &normals, Array< OneD, Array< OneD, double > > &fwd, Array< OneD, Array< OneD, double > > &bwd, Array< OneD, Array< OneD, double > > &flxRef, double gamma=1.4) |
| Compute the expected results of certain operator from the expList. | |
| template<FieldState TState> | |
| void | PrintBlockInfo (const MultiRegions::ExpListSharedPtr &expList, const std::vector< LibUtilities::BlockAttributes< TState > > &blockAttr, std::vector< double > &rankL1Err) |
| Print the block information. If verbose=true, then print the block information for each rank. If verbose=false, then only print the total information for each rank. Caution: for many ranks and many blocks, setting verbose may cause the display content too big to read. | |
| template<typename TData , FieldState TState> | |
| void | PrintProfileResult (const CommSharedPtr comm, std::vector< double > &rankElapsed, const std::vector< LibUtilities::BlockAttributes< TState > > &traceblockAttr) |
| Print the profiler results, computed from the elapsed time and the total number of dofs. | |
| template<typename TData > | |
| void | LaunchProfiler (MultiRegions::ExpListSharedPtr const &expList, const unsigned int Ntest, const std::string &method="", const unsigned int nHomo=1) |
| #define LIKWID_MARKER_CLOSE |
Definition at line 67 of file ProfilerRiemannOps.hpp.
| #define LIKWID_MARKER_GET | ( | regionTag, | |
| nevents, | |||
| events, | |||
| time, | |||
| count | |||
| ) |
Definition at line 68 of file ProfilerRiemannOps.hpp.
| #define LIKWID_MARKER_INIT |
Definition at line 61 of file ProfilerRiemannOps.hpp.
| #define LIKWID_MARKER_REGISTER | ( | regionTag | ) |
Definition at line 64 of file ProfilerRiemannOps.hpp.
| #define LIKWID_MARKER_START | ( | regionTag | ) |
Definition at line 65 of file ProfilerRiemannOps.hpp.
| #define LIKWID_MARKER_STOP | ( | regionTag | ) |
Definition at line 66 of file ProfilerRiemannOps.hpp.
| #define LIKWID_MARKER_SWITCH |
Definition at line 63 of file ProfilerRiemannOps.hpp.
| #define LIKWID_MARKER_THREADINIT |
Definition at line 62 of file ProfilerRiemannOps.hpp.
|
static |
Definition at line 77 of file ProfilerRiemannOps.hpp.
Referenced by LaunchProfiler().
| void GetExpectedResults | ( | unsigned int | spaceDim, |
| size_t | npts, | ||
| const Array< OneD, Array< OneD, double > > & | normals, | ||
| Array< OneD, Array< OneD, double > > & | fwd, | ||
| Array< OneD, Array< OneD, double > > & | bwd, | ||
| Array< OneD, Array< OneD, double > > & | flxRef, | ||
| double | gamma = 1.4 |
||
| ) |
Compute the expected results of certain operator from the expList.
Definition at line 106 of file ProfilerRiemannOps.hpp.
Referenced by LaunchProfiler().
| void LaunchProfiler | ( | MultiRegions::ExpListSharedPtr const & | expList, |
| const unsigned int | Ntest, | ||
| const std::string & | method = "", |
||
| const unsigned int | nHomo = 1 |
||
| ) |
Definition at line 384 of file ProfilerRiemannOps.hpp.
References ASSERTL0, Nektar::AdvTraceFluxCFEOp< TData >::Create(), FlattenCompMajor(), GetExpectedResults(), Nektar::MultiRegions::Operator< TData >::GetOpExecSpace(), LIKWID_MARKER_START, LIKWID_MARKER_STOP, Nektar::nekDeviceSynchronize(), PrintBlockInfo(), session, Nektar::LibUtilities::Timer::Start(), Nektar::LibUtilities::Timer::Stop(), Nektar::LibUtilities::Timer::TimePerTest(), and Nektar::StringUtils::ToUpperCopy().
| void PrintBlockInfo | ( | const MultiRegions::ExpListSharedPtr & | expList, |
| const std::vector< LibUtilities::BlockAttributes< TState > > & | blockAttr, | ||
| std::vector< double > & | rankL1Err | ||
| ) |
Print the block information. If verbose=true, then print the block information for each rank. If verbose=false, then only print the total information for each rank. Caution: for many ranks and many blocks, setting verbose may cause the display content too big to read.
Definition at line 172 of file ProfilerRiemannOps.hpp.
References Nektar::SpatialDomains::eDeformed, Nektar::SpatialDomains::eRegular, rank, and Vmath::Vsum().
Referenced by LaunchProfiler().
| void PrintProfileResult | ( | const CommSharedPtr | comm, |
| std::vector< double > & | rankElapsed, | ||
| const std::vector< LibUtilities::BlockAttributes< TState > > & | traceblockAttr | ||
| ) |
Print the profiler results, computed from the elapsed time and the total number of dofs.
Definition at line 319 of file ProfilerRiemannOps.hpp.
References rank, Vmath::Vmax(), Vmath::Vmin(), and Vmath::Vsum().