Skip to content

Commit

Permalink
clearer printed output when parsing dump_observer
Browse files Browse the repository at this point in the history
  • Loading branch information
elindgren committed Dec 13, 2022
1 parent 3b9df29 commit eea2865
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/measure/dump_observer.cu
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,12 @@ void Dump_Observer::parse(const char** param, int num_param)
PRINT_INPUT_ERROR("observer dump interval should > 0.");
}


printf(" every %d steps.\n", dump_interval_);
if (strcmp(mode_, "observe") == 0) {
printf(" evaluate all potentials every %d steps.\n", dump_interval_);
}
else if (strcmp(mode_, "average") == 0){
printf(" use the average potential in the molecular dynamics run, and dump every %d steps.\n", dump_interval_);
}
}

void Dump_Observer::preprocess(const int number_of_atoms, const int number_of_potentials, Force& force)
Expand Down

0 comments on commit eea2865

Please sign in to comment.