Skip to content

Commit 2cbe5f1

Browse files
committed
format
1 parent 183edd2 commit 2cbe5f1

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

src/schemes/structure/rigid_body/system.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,11 @@ end
159159
function create_cache_contact_manifold(contact_model, ::Val{NDIMS}, ELTYPE,
160160
n_particles, max_manifolds) where {NDIMS}
161161
return (; contact_count_per_particle=zeros(Int, n_particles),
162-
max_contact_penetration_per_particle=zeros(ELTYPE, n_particles),
163-
contact_manifold_count=zeros(Int, n_particles),
164-
contact_manifold_weight_sum=zeros(ELTYPE, max_manifolds, n_particles),
165-
contact_manifold_penetration_sum=zeros(ELTYPE, max_manifolds, n_particles),
166-
contact_manifold_normal_sum=zeros(ELTYPE, NDIMS, max_manifolds, n_particles),
162+
max_contact_penetration_per_particle=zeros(ELTYPE, n_particles),
163+
contact_manifold_count=zeros(Int, n_particles),
164+
contact_manifold_weight_sum=zeros(ELTYPE, max_manifolds, n_particles),
165+
contact_manifold_penetration_sum=zeros(ELTYPE, max_manifolds, n_particles),
166+
contact_manifold_normal_sum=zeros(ELTYPE, NDIMS, max_manifolds, n_particles),
167167
contact_manifold_wall_velocity_sum=zeros(ELTYPE, NDIMS, max_manifolds,
168168
n_particles))
169169
end

test/systems/rigid_system.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -908,10 +908,12 @@
908908

909909
@test only(Array(TrixiParticles.ReadVTK.get_data(point_data_contact["contact_count"]))) ==
910910
rigid_system_1.cache.contact_count[]
911-
@test only(Array(TrixiParticles.ReadVTK.get_data(point_data_contact["contact_count"]))) > 0
911+
@test only(Array(TrixiParticles.ReadVTK.get_data(point_data_contact["contact_count"]))) >
912+
0
912913
@test only(Array(TrixiParticles.ReadVTK.get_data(point_data_contact["max_contact_penetration"])))
913914
rigid_system_1.cache.max_contact_penetration[]
914-
@test only(Array(TrixiParticles.ReadVTK.get_data(point_data_contact["max_contact_penetration"]))) > 0
915+
@test only(Array(TrixiParticles.ReadVTK.get_data(point_data_contact["max_contact_penetration"]))) >
916+
0
915917
end
916918

917919
rigid_coordinates = reshape([0.0, 0.05], 2, 1)

0 commit comments

Comments
 (0)