Skip to content

Commit

Permalink
fixed leaky Engine::initialize() used by Engine::set_{oper,param,brak…
Browse files Browse the repository at this point in the history
…et} (HT Gustav Baardsen <[email protected]>)
  • Loading branch information
evaleev committed Nov 6, 2017
1 parent 970064e commit 1cea0b5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

Following is a brief summary of changes made in each release of Libint.

- 2017-xx-yy: 2.4.1
- plugged leaky Engine::set_{param,oper,braket}

- 2017-10-25: 2.4.0
- changed default to use user-provided boost over bundled boost + minor fixes

Expand Down
2 changes: 2 additions & 0 deletions include/libint2/engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,10 @@ class Engine {
Params params = empty_pod(), BraKet braket = BraKet::invalid)
: oper_(oper),
braket_(braket),
primdata_(),
spbra_(max_nprim),
spket_(max_nprim),
stack_size_(0),
lmax_(max_l),
deriv_order_(deriv_order),
params_(enforce_params_type(oper, params)) {
Expand Down
2 changes: 2 additions & 0 deletions include/libint2/engine.impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,8 @@ __libint2_engine_inline void Engine::_initialize() {
BOOST_PP_STRINGIZE(BOOST_PP_NBODYENGINE_MCR3_TASK(product)), \
hard_lmax_, lmax_); \
} \
if (stack_size_ > 0) \
libint2_cleanup_default(&primdata_[0]); \
stack_size_ = LIBINT2_PREFIXED_NAME(BOOST_PP_CAT( \
libint2_need_memory_, BOOST_PP_NBODYENGINE_MCR3_TASK(product)))( \
lmax_); \
Expand Down

0 comments on commit 1cea0b5

Please sign in to comment.