Skip to content

Commit

Permalink
Preparing v1.4.2 (#204)
Browse files Browse the repository at this point in the history
* Fix compile failure on Fedora rawhide arising from missing includes

* Bug fix: scale -1 vector not incremented

* Fix invalid read of coefChunk for coef-less nodes

* Prepare v1.4.2

Co-authored-by: Susi Lehtola <[email protected]>
Co-authored-by: Magnar Bjorgve <[email protected]>
  • Loading branch information
3 people authored Jan 20, 2023
1 parent 75d4187 commit 0eb225a
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 5 deletions.
13 changes: 11 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Change log

## Version 1.4.2 2023-01-20

### Fixed

- Invalid read in coef block for nodes without coefs
- Node count error for negative scales with PBC
- Missing includes resulting in compile errors for recent gcc


## Version 1.4.1 2022-01-05

### Changed
Expand All @@ -16,7 +25,7 @@

### Added

- New constructors for BoundingBox and MRA, accepting box=[-L,L] argument
- New constructors for BoundingBox and MRA, accepting box=[-L,L] argument
- Add FunctionTree::evalf_precise() which evaluates both scaling and wavelet parts
- Possibility for empty tree skeletons without allocated coefficients
- Possibility to manually set location of MW filters at configure time
Expand Down Expand Up @@ -71,7 +80,7 @@

### Fixed

- Miscellaneous fixes for building on conda-forge
- Miscellaneous fixes for building on conda-forge


## Version 1.3.1 2020-09-02
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.4.1
1.4.2
2 changes: 1 addition & 1 deletion src/trees/FunctionNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ template <int D> void FunctionNode<D>::createChildren(bool coefs) {
int sIdx = allocator.alloc(nChildren, coefs);

auto n_coefs = allocator.getNCoefs();
auto *coefs_p = allocator.getCoef_p(sIdx);
auto *coefs_p = (coefs) ? allocator.getCoef_p(sIdx) : nullptr;
auto *child_p = allocator.getNode_p(sIdx);

this->childSerialIx = sIdx;
Expand Down
1 change: 1 addition & 0 deletions src/trees/FunctionTree.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#pragma once

#include <map>
#include <memory>

#include "MWTree.h"
#include "NodeAllocator.h"
Expand Down
2 changes: 1 addition & 1 deletion src/trees/MWTree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ template <int D> void MWTree<D>::decrementNodeCount(int scale) {
assert(-depth - 1 < this->nodesAtNegativeDepth.size());
this->nodesAtNegativeDepth[-depth - 1]--;
assert(this->nodesAtNegativeDepth[-depth - 1] >= 0);
if (this->nodesAtNegativeDepth[-depth - 1] == 0 and this->nodesAtNegativeDepth.size() > 1) this->nodesAtNegativeDepth.pop_back();
if (this->nodesAtNegativeDepth[-depth - 1] == 0 and this->nodesAtNegativeDepth.size() > 0) this->nodesAtNegativeDepth.pop_back();
} else {
assert(depth < this->nodesAtDepth.size());
this->nodesAtDepth[depth]--;
Expand Down
1 change: 1 addition & 0 deletions src/trees/MWTree.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#pragma once

#include <Eigen/Core>
#include <memory>

#include "MRCPP/mrcpp_declarations.h"
#include "utils/omp_utils.h"
Expand Down

0 comments on commit 0eb225a

Please sign in to comment.