/[escript]/trunk/ripley/src/Rectangle.cpp
ViewVC logotype

Diff of /trunk/ripley/src/Rectangle.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4722 by sshaw, Wed Mar 5 05:29:25 2014 UTC revision 4753 by sshaw, Mon Mar 17 02:39:44 2014 UTC
# Line 2244  int Rectangle::findNode(const double *co Line 2244  int Rectangle::findNode(const double *co
2244  void Rectangle::setAssembler(std::string type, std::map<std::string,  void Rectangle::setAssembler(std::string type, std::map<std::string,
2245          escript::Data> constants) {          escript::Data> constants) {
2246      if (type.compare("WaveAssembler") == 0) {      if (type.compare("WaveAssembler") == 0) {
2247            if (assembler_type != WAVE_ASSEMBLER && assembler_type != DEFAULT_ASSEMBLER)
2248                throw RipleyException("Domain already using a different custom assembler");
2249            assembler_type = WAVE_ASSEMBLER;
2250          delete assembler;          delete assembler;
2251          assembler = new WaveAssembler2D(this, m_dx, m_NX, m_NE, m_NN, constants);          assembler = new WaveAssembler2D(this, m_dx, m_NX, m_NE, m_NN, constants);
2252      } else if (type.compare("LameAssembler") == 0) {      } else if (type.compare("LameAssembler") == 0) {
2253            if (assembler_type != LAME_ASSEMBLER && assembler_type != DEFAULT_ASSEMBLER)
2254                throw RipleyException("Domain already using a different custom assembler");
2255            assembler_type = LAME_ASSEMBLER;
2256          delete assembler;          delete assembler;
2257          assembler = new LameAssembler2D(this, m_dx, m_NX, m_NE, m_NN);          assembler = new LameAssembler2D(this, m_dx, m_NX, m_NE, m_NN);
2258      } else { //else ifs would go before this for other types      } else { //else ifs would go before this for other types

Legend:
Removed from v.4722  
changed lines
  Added in v.4753

  ViewVC Help
Powered by ViewVC 1.1.26