Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more quiet fixes #1008

Merged
merged 1 commit into from
Sep 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion scheme/structure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,8 @@ geom_epsilon::geom_epsilon(geometric_object_list g, material_type_list mlist,
FOR_DIRECTIONS(d) FOR_SIDES(b) { cond[d][b].prof = NULL; }

if (meep::am_master()) {
for (int i = 0; i < geometry.num_items; ++i) {
int num_print = meep::verbosity > 2 ? geometry.num_items : std::min(geometry.num_items, meep::verbosity > 0 ? 10 : 0);
for (int i = 0; i < num_print; ++i) {
display_geometric_object_info(5, geometry.items[i]);

if (geometry.items[i].material.which_subclass == MTS::MEDIUM)
Expand All @@ -273,6 +274,8 @@ geom_epsilon::geom_epsilon(geometric_object_list g, material_type_list mlist,
geometry.items[i].material.subclass.medium_data->epsilon_diag.y,
geometry.items[i].material.subclass.medium_data->epsilon_diag.z);
}
if (num_print < geometry.num_items && meep::verbosity > 0)
master_printf("%*s...(+ %d objects not shown)...\n", 5, "", geometry.num_items - num_print);
}

geom_fix_object_list(geometry);
Expand Down
4 changes: 2 additions & 2 deletions src/bicgstab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ ptrdiff_t bicgstabL(const int L, const size_t n, realnum *x, bicgstab_op A, void
double resid;
while ((resid = norm2(n, r[0])) > tol * bnrm) {
++iter;
if (verbosity > 0 && wall_time() > last_output_wall_time + MEEP_MIN_OUTPUT_TIME) {
if (!quiet && wall_time() > last_output_wall_time + MEEP_MIN_OUTPUT_TIME) {
master_printf("residual[%d] = %g\n", iter, resid / bnrm);
last_output_wall_time = wall_time();
}
Expand Down Expand Up @@ -220,7 +220,7 @@ ptrdiff_t bicgstabL(const int L, const size_t n, realnum *x, bicgstab_op A, void
}
}

if (verbosity > 0) master_printf("final residual = %g\n", norm2(n, r[0]) / bnrm);
if (!quiet) master_printf("final residual = %g\n", norm2(n, r[0]) / bnrm);

finish:
delete[] sigma;
Expand Down