Preparing to change the input
This commit is contained in:
parent
c1b6cf1b31
commit
defcf02466
3 changed files with 43 additions and 10 deletions
|
|
@ -800,19 +800,18 @@ MODULE moduleInput
|
|||
IMPLICIT NONE
|
||||
|
||||
TYPE(json_file), INTENT(inout):: config
|
||||
INTEGER:: i, s
|
||||
CHARACTER(2):: iString, sString
|
||||
INTEGER:: b
|
||||
CHARACTER(2):: iString
|
||||
CHARACTER(:), ALLOCATABLE:: object
|
||||
LOGICAL:: found
|
||||
INTEGER:: nTypes
|
||||
|
||||
CALL config%info('boundary', found, n_children = nBoundary)
|
||||
ALLOCATE(boundaries(1:nBoundary))
|
||||
DO i = 1, nBoundary
|
||||
WRITE(iString, '(i2)') i
|
||||
DO b = 1, nBoundary
|
||||
WRITE(iString, '(i2)') b
|
||||
object = 'boundary(' // TRIM(iString) // ')'
|
||||
|
||||
call boundaries(i)%init(config, object, i)
|
||||
call boundaries(i)%init(config, object, b)
|
||||
|
||||
END DO
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue