Skip to content

Commit

Permalink
Fix Issue #571
Browse files Browse the repository at this point in the history
  • Loading branch information
thelfer committed May 23, 2024
1 parent af59dda commit 6d7a125
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions docs/web/release-notes-4.0.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ eqnPrefixTemplate: "($$i$$)"

# Issues fixed

## Issue 571: [mtest] fix handling of the tangent operator blocks in the GenericBehaviour class

For more details, see <https://github.com/thelfer/tfel/issues/571>

## Issue 562: [cmake] fix enable-static option

For more details, see <https://github.com/thelfer/tfel/issues/562>
Expand Down
6 changes: 3 additions & 3 deletions mtest/src/GenericBehaviour.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -654,9 +654,9 @@ namespace mtest {
const auto g_size = mtest::getVariableSize(this->gtypes[gpos], h);
const auto th_size = mtest::getVariableSize(this->thtypes[tfpos], h);
const auto p = wk.D.begin();
for (size_type i = 0; i != g_size; ++i) {
for (size_type j = 0; j != th_size; ++j) {
Kt(og + i, otf + j) = p[to_offset + i * th_size + j];
for (size_type i = 0; i != th_size; ++i) {
for (size_type j = 0; j != g_size; ++j) {
Kt(otf + i, og + j) = p[to_offset + i * g_size + j];
}
}
to_offset += to_ro * to_co;
Expand Down

0 comments on commit 6d7a125

Please sign in to comment.