Skip to content

Commit

Permalink
error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CWillberg committed Nov 6, 2024
1 parent d1106b0 commit 14441c6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ using .Geometry:
compute_bond_level_rotation_tensor,
compute_bond_level_deformation_gradient
include("../../../Pre_calculation/pre_bond_associated_correspondence.jl")
using .Pre_Bond_Associated_Correspondence: compute_weighted_volume
using .Pre_Bond_Associated_Correspondence: compute_weighted_volume!
export fields_for_local_synchronization
export init_model
export compute_model
Expand Down Expand Up @@ -429,9 +429,12 @@ function compute_bond_forces(

# bond_forces[iID][jID, :] =
# integral_nodal_stress[iID, :, :] * gradient_weights[iID][jID, :]
bf = @view bond_forces[iID][jID]
gw = @view gradient_weights[iID][jID]
mul!(bf, integral_nodal_stress[iID, :, :], gw)

mul!(
bond_forces[iID][jID],
integral_nodal_stress[iID, :, :],
gradient_weights[iID][jID],
)
@views bond_forces[iID][jID] +=
bond_damage[iID][jID] * omega[iID][jID] /
(weighted_volume[iID] * bond_length[iID][jID] * bond_length[iID][jID]) .*
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Model_Factory.jl
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ function local_synch(datamanager, model, direction, synchronise_field)
synch_fields = datamanager.get_local_synch_fields(model)
for synch_field in keys(synch_fields)
synchronise_field(
datamanager.get_com(),
datamanager.get_comm(),
synch_fields,
datamanager.get_overlap_map(),
datamanager.get_field,
Expand Down

0 comments on commit 14441c6

Please sign in to comment.