Skip to content

Commit

Permalink
fix indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
Courtney Peverley committed Jun 7, 2024
1 parent 8297a6b commit 97c3cc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/constituents.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ def write_host_routines(cap, host, reg_funcname, init_funcname, num_const_funcna
cap.write(f"do index = 1, size(dyn_const_prop_{idx}, 1)", 2)
cap.write(f"{dyn_const_name}(index + index_start) = dyn_const_prop_{idx}(index)", 3)
cap.write("end do", 2)
cap.write(f"index_start = size(dyn_const_prop_{idx}, 1)", 2)
cap.write(f"index_start = index_start + size(dyn_const_prop_{idx}, 1)", 2)
cap.write(f"deallocate(dyn_const_prop_{idx})", 2)
# end for
# end if
Expand Down

0 comments on commit 97c3cc5

Please sign in to comment.