Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042 #include "SundanceSumOfBCs.hpp"
00043 #include "PlayaTabs.hpp"
00044
00045 using namespace Sundance;
00046 using namespace Teuchos;
00047 using std::endl;
00048
00049 SumOfBCs::SumOfBCs(const RCP<CellFilterStub>& region,
00050 const Expr& expr,
00051 const RCP<QuadratureFamilyStub>& quad,
00052 const ParametrizedCurve& curve,
00053 const WatchFlag& watch)
00054 : SumOfIntegrals(region, expr, quad, curve, watch)
00055 {;}
00056
00057 std::ostream& SumOfBCs::toText(std::ostream& os, bool paren) const
00058 {
00059 os << "Sum of BCs[" << std::endl;
00060 for (Sundance::Map<RegionQuadCombo, Expr>::const_iterator
00061 i=rqcToExprMap().begin(); i!=rqcToExprMap().end(); i++)
00062 {
00063 const RegionQuadCombo& rqc = i->first;
00064 Expr e = i->second;
00065 os << "Integral[" << std::endl;
00066 os << "rqc=" << rqc.toString() << std::endl;
00067 os << "expr=" << e.toString() << std::endl;
00068 os << "]" << std::endl;
00069 }
00070 os << "]" << std::endl;
00071
00072 return os;
00073 }
00074
00075
00076 XMLObject SumOfBCs::toXML() const
00077 {
00078 XMLObject rtn("SumOfBCs");
00079 for (Sundance::Map<RegionQuadCombo, Expr>::const_iterator
00080 i=rqcToExprMap().begin(); i!=rqcToExprMap().end(); i++)
00081 {
00082 const RegionQuadCombo& rqc = i->first;
00083 Expr e = i->second;
00084 XMLObject child("Integral");
00085 rtn.addChild(child);
00086 child.addChild(rqc.quad()->toXML());
00087 child.addChild(rqc.domain()->toXML());
00088 child.addChild(rqc.watch().toXML());
00089 child.addChild(e.toXML());
00090 }
00091 return rtn;
00092 }