Skip to content

Commit

Permalink
tested decimation
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabh-s-sawant committed Nov 23, 2024
1 parent e376692 commit 2b2cdc9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Source/Solver/Transport/NEGF/NEGF_Common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,13 @@ void c_NEGF_Common<T>::Read_DecimationTechniqueParams(amrex::ParmParse &pp_ns)
queryWithParser(pp_ns, "decimation_max_iter", decimation_max_iter);
queryWithParser(pp_ns, "decimation_rel_error", decimation_rel_error);
queryWithParser(pp_ns, "decimation_layers", decimation_layers);

amrex::Print() << "##### use_decimation: " << use_decimation << "\n";
amrex::Print() << "##### decimation_max_iter: " << decimation_max_iter
<< "\n";
amrex::Print() << "##### decimation_rel_error: " << decimation_rel_error
<< "\n";
amrex::Print() << "##### decimation_layers: " << decimation_layers << "\n";
}

template <typename T>
Expand Down
6 changes: 6 additions & 0 deletions input/negf/StewartFrancois2006/all_around_metal
Original file line number Diff line number Diff line change
Expand Up @@ -210,4 +210,10 @@ cnt.eq_integration_pts = 30 30 30
cnt.noneq_integration_pts = 100

cnt.write_at_iter = 1

### decimation technique
cnt.use_decimation=1
cnt.decimation_max_iter=50
cnt.decimation_rel_error=1e-5
cnt.decimation_layers=20
#####################################

0 comments on commit 2b2cdc9

Please sign in to comment.