v0.16.0
Loading...
Searching...
No Matches
Classes | Functions
TetPolynomialBase.cpp File Reference

Implementation of hierarchical bases on tetrahedral. More...

Go to the source code of this file.

Classes

struct  TetBaseCache
 
struct  TetBaseCache::BaseCacheItem
 
struct  TetBaseCache::HDivBaseCacheItem
 

Functions

template<typename T >
auto tetCacheSwitch (const void *ptr, T &cache, std::string cache_name)
 

Detailed Description

Implementation of hierarchical bases on tetrahedral.

A l2, h1, h-div and h-curl spaces are implemented.

Definition in file TetPolynomialBase.cpp.

Function Documentation

◆ tetCacheSwitch()

template<typename T >
auto tetCacheSwitch ( const void *  ptr,
T &  cache,
std::string  cache_name 
)

Definition at line 2312 of file TetPolynomialBase.cpp.

2312 {
2313 auto it = cache.find(ptr);
2314 if (it != cache.end()) {
2315 MOFEM_LOG_CHANNEL("WORLD");
2316 MOFEM_TAG_AND_LOG("WORLD", Sev::noisy, "TetPolynomialBase")
2317 << "Cache off " << cache_name << ": " << it->second.size();
2318 cache.erase(it);
2319 return false;
2320 } else {
2321 MOFEM_LOG_CHANNEL("WORLD");
2322 MOFEM_TAG_AND_LOG("WORLD", Sev::noisy, "TetPolynomialBase")
2323 << "Cache on " << cache_name;
2324 cache[ptr];
2325 return true;
2326 }
2327}
#define MOFEM_TAG_AND_LOG(channel, severity, tag)
Tag and log in channel.
#define MOFEM_LOG_CHANNEL(channel)
Set and reset channel.