PlasCom2  1.0
XPACC Multi-physics simluation application
Boundary.C
Go to the documentation of this file.
1 #include "Simulation.H"
2 #include "Boundary.H"
3 
4 namespace simulation {
5  namespace domain {
6  namespace boundary {
7  namespace bc {
8  int ResolveBCName(const std::string &inName)
9  {
10  for(int iType = 0;iType < (int)NUMBCTYPE;iType++){
11  const std::string &bcName(bcNames[iType]);
12  if(inName == bcName) return(iType);
13  }
14  return((int)NUMBCTYPE);
15  }
16 
17  std::string ResolveBCType(int inType)
18  {
19  if(inType >= 0 && inType < (int)NUMBCTYPE)
20  return(std::string(bcNames[inType]));
21  return(std::string(bcNames[(int)NUMBCTYPE]));
22  }
23  }
24  }
25  }
26 }
int ResolveBCName(const std::string &inName)
Definition: Boundary.C:8
std::string ResolveBCType(int inType)
Definition: Boundary.C:17
static const char * bcNames[]
Definition: Boundary.H:11