Permalink
Browse files

Use timer_on/timer_off in cchbar

  • Loading branch information...
robertodr committed Sep 27, 2018
1 parent 7505dc2 commit 10e4943e4e6046e7f3d6edaffb67ee9a46c6481b
Showing with 3 additions and 2 deletions.
  1. +3 −2 psi4/src/psi4/cc/cchbar/cchbar.cc
@@ -46,6 +46,7 @@
#include "psi4/libdpd/dpd.h"
#include "psi4/psifiles.h"
#include "psi4/psi4-dec.h"
#include "psi4/libqt/qt.h"
#include <cstdio>
#include <cstdlib>
@@ -187,7 +188,7 @@ PsiReturnType cchbar(std::shared_ptr<Wavefunction> ref_wfn, Options &options) {
}
void init_io() {
tstart();
timer_on("CCHBAR");
/* Open all dpd data files */
for (int i = PSIF_CC_MIN; i <= PSIF_CC_MAX; i++) psio_open(i, 1);
@@ -209,7 +210,7 @@ void exit_io() {
for (int i = PSIF_CC_TMP; i <= PSIF_CC_TMP11; ++i) psio_close(i, 0); /* get rid of TMP files */
for (int i = PSIF_CC_TMP11 + 1; i <= PSIF_CC_MAX; ++i) psio_close(i, 1);
tstop();
timer_off("CCHBAR");
}
} // namespace cchbar

0 comments on commit 10e4943

Please sign in to comment.