OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | List of all members
olb::ompManager Struct Reference

#include <ompManager.h>

+ Collaboration diagram for olb::ompManager:

Public Member Functions

void init (bool verbose=true)
 
int getSize () const
 
int getRank () const
 
void setDynamic (int dynamicThreads)
 

Detailed Description

Definition at line 34 of file ompManager.h.

Member Function Documentation

◆ getRank()

int olb::ompManager::getRank ( ) const

Definition at line 44 of file ompManager.cpp.

45{
46 return omp_get_thread_num();
47}
+ Here is the caller graph for this function:

◆ getSize()

int olb::ompManager::getSize ( ) const

Definition at line 39 of file ompManager.cpp.

40{
41 return omp_get_max_threads();
42}
+ Here is the caller graph for this function:

◆ init()

void olb::ompManager::init ( bool verbose = true)

Definition at line 30 of file ompManager.cpp.

31{
32 setDynamic(0);
33 if (verbose) {
34 olb::OstreamManager clout(std::cout,"OmpManager");
35 clout << "Sucessfully initialized, numThreads=" << getSize() << std::endl;
36 }
37}
class for marking output with some text
void setDynamic(int dynamicThreads)
int getSize() const

References getSize(), and setDynamic().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setDynamic()

void olb::ompManager::setDynamic ( int dynamicThreads)

Definition at line 49 of file ompManager.cpp.

50{
51 omp_set_dynamic(dynamicThreads);
52}
+ Here is the caller graph for this function:

The documentation for this struct was generated from the following files: