Permalink
Browse files

Use timer_on/timer_off in cctriples

  • Loading branch information...
robertodr committed Sep 27, 2018
1 parent 4ff0cb9 commit 5cf1c5419f799d8a8912dcac06aeb2abcf8d29d3
Showing with 2 additions and 6 deletions.
  1. +2 −6 psi4/src/psi4/cc/cctriples/triples.cc
@@ -108,8 +108,6 @@ PsiReturnType cctriples(std::shared_ptr<Wavefunction> reference_wavefunction, Op
init_io();
title();
timer_on("CCtriples");
get_moinfo(reference_wavefunction, options);
memory = Process::environment.get_memory();
@@ -254,14 +252,12 @@ PsiReturnType cctriples(std::shared_ptr<Wavefunction> reference_wavefunction, Op
cleanup();
timer_off("CCtriples");
exit_io();
return Success;
}
void init_io() {
tstart();
timer_on("CCTriples");
for (int i = PSIF_CC_MIN; i <= PSIF_CC_MAX; i++) psio_open(i, 1);
}
@@ -277,7 +273,7 @@ void title() {
void exit_io() {
int i;
for (i = PSIF_CC_MIN; i <= PSIF_CC_MAX; i++) psio_close(i, 1);
tstop();
timer_off("CCTriples");
}
} // namespace cctriples

0 comments on commit 5cf1c54

Please sign in to comment.