v0.14.0
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 1985 of file TetPolynomialBase.cpp.

1985  {
1986  auto it = cache.find(ptr);
1987  if (it != cache.end()) {
1988  MOFEM_LOG_CHANNEL("WORLD");
1989  MOFEM_TAG_AND_LOG("WORLD", Sev::noisy, "TetPolynomialBase")
1990  << "Cache off " << cache_name << ": " << it->second.size();
1991  cache.erase(it);
1992  return false;
1993  } else {
1994  MOFEM_LOG_CHANNEL("WORLD");
1995  MOFEM_TAG_AND_LOG("WORLD", Sev::noisy, "TetPolynomialBase")
1996  << "Cache on " << cache_name;
1997  cache[ptr];
1998  return true;
1999  }
2000 }
MOFEM_LOG_CHANNEL
#define MOFEM_LOG_CHANNEL(channel)
Set and reset channel.
Definition: LogManager.hpp:284
MOFEM_TAG_AND_LOG
#define MOFEM_TAG_AND_LOG(channel, severity, tag)
Tag and log in channel.
Definition: LogManager.hpp:362