Peano 4
Loading...
Searching...
No Matches
um_bridge_swe_simple_client.py
Go to the documentation of this file.
1import umbridge
2
3print(umbridge.supported_models("http://0.0.0.0:4242"))
4
5model = umbridge.HTTPModel("http://0.0.0.0:4242", "forward")
6
7# config should only contain options for swe
8config = {
9 "-sc": "Tsunami",
10 "-bf": "./netCDFInputs/artificialtsunami_bathymetry_1000.nc",
11 "-df": "./netCDFInputs/artificialtsunami_displ_1000.nc",
12 "-et": 360,
13 "-amr": 0,
14 "-s": "FVRusanovGlobalAdaptive",
15 "-ps": 4,
16 "-maxh": 100,
17 "-probes": ["[5e3,5e3]"],
18 "-wd": "[10e3,10e3]",
19 "-pi": 1
20}
21
22print(model.get_input_sizes())
23print(model.get_output_sizes(config))
24
25print(model([[-25e2, -25e2]], config))