Complete SPHLite 0.8.1 stage F gate
This commit is contained in:
@@ -83,8 +83,11 @@ contains
|
||||
real(rk) :: acceleration_norm
|
||||
real(rk) :: blast_force_values(9)
|
||||
real(rk) :: coupling_force_values(3)
|
||||
real(rk) :: coupling_gap
|
||||
real(rk) :: coupling_penetration
|
||||
integer :: reference_neighbors
|
||||
integer :: correction_status
|
||||
integer :: contact_flag
|
||||
integer :: motion_flag
|
||||
integer :: region_id
|
||||
|
||||
@@ -104,6 +107,7 @@ contains
|
||||
'blast_shell_fx,blast_shell_fy,blast_shell_fz,' // &
|
||||
'blast_shell_mx,blast_shell_my,blast_shell_mz,' // &
|
||||
'coupling_force_x,coupling_force_y,coupling_force_z,' // &
|
||||
'coupling_gap,coupling_penetration,coupling_contact_flag,' // &
|
||||
'solid_failure_status,solid_reference_neighbor_count,' // &
|
||||
'solid_correction_status,coupling_motion_flag,coupling_region_id') then
|
||||
call fail('Solid particle CSV header mismatch')
|
||||
@@ -111,8 +115,8 @@ contains
|
||||
read(unit, *, iostat=ios) id, phase, status, mat, sec, pos, vel, &
|
||||
scalar_values, explosive_values, stress_values, plastic, damage, &
|
||||
softening, strain_rate_eq, acceleration_norm, blast_force_values, &
|
||||
coupling_force_values, failure, reference_neighbors, correction_status, &
|
||||
motion_flag, region_id
|
||||
coupling_force_values, coupling_gap, coupling_penetration, contact_flag, &
|
||||
failure, reference_neighbors, correction_status, motion_flag, region_id
|
||||
close(unit=unit)
|
||||
if (ios /= 0) call fail('Solid particle CSV row read failed')
|
||||
if (id /= 1) call fail('Solid particle CSV id mismatch')
|
||||
@@ -143,6 +147,10 @@ contains
|
||||
if (maxval(abs(coupling_force_values)) > 1.0e-12_rk) then
|
||||
call fail('Solid particle CSV coupling load pollution')
|
||||
end if
|
||||
if (abs(coupling_gap) > 1.0e-12_rk .or. &
|
||||
abs(coupling_penetration) > 1.0e-12_rk .or. contact_flag /= 0) then
|
||||
call fail('Solid particle CSV coupling contact defaults mismatch')
|
||||
end if
|
||||
if (failure /= solid_failure_status(1)) call fail('Solid particle CSV failure mismatch')
|
||||
if (reference_neighbors /= solid_reference_neighbor_count(1)) then
|
||||
call fail('Solid particle CSV reference neighbor mismatch')
|
||||
|
||||
Reference in New Issue
Block a user