Add Solid input parsing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user