Add Solid input parsing

This commit is contained in:
Codex
2026-07-03 14:40:39 +08:00
parent a5728e021a
commit 56f37dea77
19 changed files with 777 additions and 29 deletions
+8
View File
@@ -452,6 +452,7 @@ contains
integer, intent(in) :: points
integer, intent(out) :: ierr
integer :: mat_index
integer :: set_index
ierr = SPH_SUCCESS
if (section_count >= SPH_MAX_SECTIONS) then
@@ -465,6 +466,13 @@ contains
ierr = SPH_ERROR_DATABASE
return
end if
set_index = sph_db_find_elset(name)
if (set_index <= 0) set_index = sph_db_find_nset(name)
if (set_index <= 0) then
call sph_error_set(SPH_ERROR_DATABASE, 'section references unknown set')
ierr = SPH_ERROR_DATABASE
return
end if
section_count = section_count + 1
section_name(section_count) = name
section_type(section_count) = stype