from_json Subroutine

public impure elemental subroutine from_json(self, name, json_str, path)

Uses

    • json_module
  • proc~~from_json~~UsesGraph proc~from_json Groups%from_json json_module json_module proc~from_json->json_module

From a json file and a model name set the present groups.

Type Bound

Groups

Arguments

Type IntentOptional Attributes Name
class(Groups), intent(inout) :: self

Groups

character(len=*), intent(in) :: name

Model name

character(len=*), intent(in) :: json_str

json file

character(len=*), intent(in), optional :: path

Path to file


Calls

proc~~from_json~~CallsGraph proc~from_json Groups%from_json get get proc~from_json->get proc~open_json open_json proc~from_json->proc~open_json failed failed proc~open_json->failed initialize initialize proc~open_json->initialize load_file load_file proc~open_json->load_file

Variables

Type Visibility Attributes Name Initial
character(len=:), public, allocatable :: base
integer, public :: count
logical, public :: found
integer, public :: i
integer, public :: id
character(len=50), public :: idx
type(json_file), public :: json
character(len=:), public, allocatable :: str