Commit 6718826e authored by Santiago Ospina's avatar Santiago Ospina

comment out debug info

Signed-off-by: Santiago Ospina De Los Ríos's avatarSantiago Ospina <santiago.ospina@iup.uni-heidelberg.de>
parent 95d0a970
...@@ -187,13 +187,12 @@ public: ...@@ -187,13 +187,12 @@ public:
{ {
lfsv_volume.bind( eg.entity() ); lfsv_volume.bind( eg.entity() );
std::cout << "lfsv_volume.size(): " << lfsv_volume.size() << std::endl; // std::cout << "lfsv_volume.size(): " << lfsv_volume.size() << std::endl;
std::cout << "lfsv_volume.debug():" << std::endl; lfsv_volume.debug(); // std::cout << "lfsv_volume.debug():" << std::endl; lfsv_volume.debug();
global_pl_view.bind(lfsw_cache); global_pl_view.bind(lfsw_cache);
pl.resize(lfsw_cache.size()); pl.resize(lfsw_cache.size());
rl.assign(lfsv_volume.size(),0.0); rl.assign(lfsv_volume.size(),0.0);
} }
...@@ -203,16 +202,16 @@ public: ...@@ -203,16 +202,16 @@ public:
lfsv_skeleton.bind( ig.intersection() ); lfsv_skeleton.bind( ig.intersection() );
// inside part // inside part
std::cout << "lfsu_cache.size(): " << lfsu_cache.size() << std::endl; // std::cout << "lfsu_cache.size(): " << lfsu_cache.size() << std::endl;
std::cout << "lfsu.debug():" << std::endl; lfsu_cache.localFunctionSpace().debug(); // std::cout << "lfsu.debug():" << std::endl; lfsu_cache.localFunctionSpace().debug();
std::cout << "lfsw_cache.size(): " << lfsw_cache.size() << std::endl; // std::cout << "lfsw_cache.size(): " << lfsw_cache.size() << std::endl;
std::cout << "lfsw.debug():" << std::endl; lfsw_cache.localFunctionSpace().debug(); // std::cout << "lfsw.debug():" << std::endl; lfsw_cache.localFunctionSpace().debug();
std::cout << "lfsv_skeleton.size(): " << lfsv_skeleton.size() << std::endl; // std::cout << "lfsv_skeleton.size(): " << lfsv_skeleton.size() << std::endl;
std::cout << "lfsv_skeleton.debug():" << std::endl; lfsv_skeleton.debug(); // std::cout << "lfsv_skeleton.debug():" << std::endl; lfsv_skeleton.debug();
std::cout << "ig.entity().subEntities(1): " << ig.inside().subEntities(1) << std::endl; // std::cout << "ig.entity().subEntities(1): " << ig.inside().subEntities(1) << std::endl;
} }
template<typename IG, typename LFSUC, typename LFSWC> template<typename IG, typename LFSUC, typename LFSWC>
...@@ -256,16 +255,16 @@ public: ...@@ -256,16 +255,16 @@ public:
const LFSUC & lfsu_cache, const LFSUC & lfsu_cache,
const LFSVC & lfsv_cache) const LFSVC & lfsv_cache)
{ {
std::cout << "r_vec" << std::endl; // std::cout << "r_vec" << std::endl;
std::cout << r_vec << std::endl; // std::cout << r_vec << std::endl;
std::cout << "m_matrix" << std::endl; // std::cout << "m_matrix" << std::endl;
std::cout << m_matrix << std::endl; // std::cout << m_matrix << std::endl;
x_vec.resize(lfsu_cache.size(),0.0); x_vec.resize(lfsu_cache.size(),0.0);
m_matrix.solve(x_vec,r_vec); m_matrix.solve(x_vec,r_vec);
std::cout << "x_vec" << std::endl; // std::cout << "x_vec" << std::endl;
std::cout << x_vec << std::endl; // std::cout << x_vec << std::endl;
auto& lfsu = lfsu_cache.localFunctionSpace(); auto& lfsu = lfsu_cache.localFunctionSpace();
...@@ -389,11 +388,11 @@ public: ...@@ -389,11 +388,11 @@ public:
m_matrix[i][j] += (phiu[j]*phiv[i])/detB * factor/detB; m_matrix[i][j] += (phiu[j]*phiv[i])/detB * factor/detB;
} }
std::cout << "assembleUVVolume" << std::endl; // std::cout << "assembleUVVolume" << std::endl;
std::cout << "r_vec" << std::endl; // std::cout << "r_vec" << std::endl;
std::cout << r_vec << std::endl; // std::cout << r_vec << std::endl;
std::cout << "m_matrix" << std::endl; // std::cout << "m_matrix" << std::endl;
std::cout << m_matrix << std::endl; // std::cout << m_matrix << std::endl;
} }
...@@ -408,7 +407,7 @@ public: ...@@ -408,7 +407,7 @@ public:
// if (not ig.intersection().conforming()) // if (not ig.intersection().conforming())
// std::cout << WARNING: Non-conforming entities produce non-continuos fluxes in normal direction of the entity << std::endl; // std::cout << WARNING: Non-conforming entities produce non-continuos fluxes in normal direction of the entity << std::endl;
std::cout << "assembleUVSkeleton" << std::endl; // std::cout << "assembleUVSkeleton" << std::endl;
rl_view.setWeight(local_assembler.weight()); rl_view.setWeight(local_assembler.weight());
rn_view.setWeight(local_assembler.weight()); rn_view.setWeight(local_assembler.weight());
...@@ -429,7 +428,7 @@ public: ...@@ -429,7 +428,7 @@ public:
// Load residual view into the local residual vector // Load residual view into the local residual vector
for (unsigned int i = 0; i < lfsv_skeleton.size(); ++i){ for (unsigned int i = 0; i < lfsv_skeleton.size(); ++i){
std::cout << i+offset << ": " << rl(lfsv_skeleton,i) << " , " << rn(lfsv_skeleton_n,i) << std::endl; // std::cout << i+offset << ": " << rl(lfsv_skeleton,i) << " , " << rn(lfsv_skeleton_n,i) << std::endl;
r_vec[i+offset] += weight*rl(lfsv_skeleton,i); r_vec[i+offset] += weight*rl(lfsv_skeleton,i);
} }
...@@ -493,10 +492,10 @@ public: ...@@ -493,10 +492,10 @@ public:
} }
} }
std::cout << "r_vec" << std::endl; // std::cout << "r_vec" << std::endl;
std::cout << r_vec << std::endl; // std::cout << r_vec << std::endl;
std::cout << "m_matrix" << std::endl; // std::cout << "m_matrix" << std::endl;
std::cout << m_matrix << std::endl; // std::cout << m_matrix << std::endl;
} }
template<typename IG, typename LFSWC> template<typename IG, typename LFSWC>
...@@ -510,13 +509,13 @@ public: ...@@ -510,13 +509,13 @@ public:
Dune::PDELab::LocalAssemblerCallSwitch<LOP,LOP::doAlphaBoundary>:: Dune::PDELab::LocalAssemblerCallSwitch<LOP,LOP::doAlphaBoundary>::
alpha_boundary(lop,ig,lfsw_s_cache.localFunctionSpace(),pl,lfsv_skeleton,rl_view); alpha_boundary(lop,ig,lfsw_s_cache.localFunctionSpace(),pl,lfsv_skeleton,rl_view);
std::cout << "assembleUVBoundary" << std::endl; // std::cout << "assembleUVBoundary" << std::endl;
unsigned int offset = lfsv_volume.size() + lfsv_skeleton.size()*ig.intersection().indexInInside(); unsigned int offset = lfsv_volume.size() + lfsv_skeleton.size()*ig.intersection().indexInInside();
// Load residual view into the local residual vector // Load residual view into the local residual vector
for (unsigned int i = 0; i < lfsv_skeleton.size(); ++i){ for (unsigned int i = 0; i < lfsv_skeleton.size(); ++i){
std::cout << i+offset << ": " << rl(lfsv_skeleton,i) << std::endl; // std::cout << i+offset << ": " << rl(lfsv_skeleton,i) << std::endl;
r_vec[i+offset] += rl(lfsv_skeleton,i); r_vec[i+offset] += rl(lfsv_skeleton,i);
} }
...@@ -567,10 +566,10 @@ public: ...@@ -567,10 +566,10 @@ public:
m_matrix[i+offset][j] += (y*phiu_s[j])/detB * phiv_s[i] * factor; m_matrix[i+offset][j] += (y*phiu_s[j])/detB * phiv_s[i] * factor;
} }
std::cout << "r_vec" << std::endl; // std::cout << "r_vec" << std::endl;
std::cout << r_vec << std::endl; // std::cout << r_vec << std::endl;
std::cout << "m_matrix" << std::endl; // std::cout << "m_matrix" << std::endl;
std::cout << m_matrix << std::endl; // std::cout << m_matrix << std::endl;
} }
template<typename IG, typename LFSWC> template<typename IG, typename LFSWC>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment