Namespaces | Macros | Functions
PlumedMain.cpp File Reference
#include "PlumedMain.h"
#include "ActionAtomistic.h"
#include "ActionPilot.h"
#include "ActionRegister.h"
#include "ActionSet.h"
#include "ActionWithValue.h"
#include "ActionWithVirtualAtom.h"
#include "Atoms.h"
#include "CLToolMain.h"
#include "ExchangePatterns.h"
#include "GREX.h"
#include "config/Config.h"
#include "tools/Citations.h"
#include "tools/Communicator.h"
#include "tools/DLLoader.h"
#include "tools/Exception.h"
#include "tools/IFile.h"
#include "tools/Log.h"
#include "tools/OpenMP.h"
#include "tools/Tools.h"
#include "tools/Stopwatch.h"
#include "tools/TypesafePtr.h"
#include "lepton/Exception.h"
#include "DataFetchingObject.h"
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <set>
#include <unordered_map>
#include <exception>
#include <stdexcept>
#include <ios>
#include <new>
#include <typeinfo>
#include <iostream>
#include <algorithm>
#include "PlumedMainEnum.inc"
#include "PlumedMainMap.inc"

Namespaces

 PLMD
 

Macros

#define __PLUMED_THROW_MSG(type)   if(words[0]==#type) throw type(what)
 
#define __PLUMED_THROW_NOMSG(type)   if(words[0]==#type) throw type()
 
#define CHECK_INIT(ini, word)   plumed_massert(ini,"cmd(\"" + word +"\") should be only used after plumed initialization")
 
#define CHECK_NOTINIT(ini, word)   plumed_massert(!(ini),"cmd(\"" + word +"\") should be only used before plumed initialization")
 
#define CHECK_NOTNULL(val, word)   plumed_massert(val,"NULL pointer received in cmd(\"" + word + "\")");
 

Functions

static void PLMD::testThrow (const char *what)
 Small utility just used in this file to throw arbitrary exceptions. More...
 

Macro Definition Documentation

◆ __PLUMED_THROW_MSG

#define __PLUMED_THROW_MSG (   type)    if(words[0]==#type) throw type(what)

◆ __PLUMED_THROW_NOMSG

#define __PLUMED_THROW_NOMSG (   type)    if(words[0]==#type) throw type()

◆ CHECK_INIT

#define CHECK_INIT (   ini,
  word 
)    plumed_massert(ini,"cmd(\"" + word +"\") should be only used after plumed initialization")

◆ CHECK_NOTINIT

#define CHECK_NOTINIT (   ini,
  word 
)    plumed_massert(!(ini),"cmd(\"" + word +"\") should be only used before plumed initialization")

◆ CHECK_NOTNULL

#define CHECK_NOTNULL (   val,
  word 
)    plumed_massert(val,"NULL pointer received in cmd(\"" + word + "\")");