User Forum of Software BASEMENT

BASEMENT
Basic Simulation Environment for computation of environmental flow and natural hazard simulation
Laboratory of Hydraulics, Hydrology and Glaciology (VAW)
ETH Zurich
Basement_Logo

You are not logged in.

#1 2019-05-29 17:04:42

emilio.politti
User
Registered: 2019-05-29
Posts: 4

JSON validation errors while generating output

Hi,
I'm trying to run Basement v3 on Ubuntu 18.04.2 LTS in batch mode. When I try to generate the output with the command "BMv3_BASEplane_results" I get the error:
/RESULTS: Error: This value must be an object.
-> Terminating BASEMENT due to JSON validation errors.
-> ... unfortunately BASEMENT is killed!

I tried to run the same commands on the "stationary" (Flaz_2D_v3/A_Stationary) tutorial provided on the Basement website but I get the same error. Basement (with both my data and the tutorial ones) runs successfully the first two commands (see below) but brakes on the third one with the error message I reported above.
Do you see what I'm doing wrong?
Thank you

Commands:
BMv3_BASEplane_setup -f model.json -o 12_A_run.h5
BMv3_BASEplane_omp -f simulation.json -r 12_A_run.h5 -o C12_results.h5 -p
BMv3_BASEplane_results -f results.json -r 12_A_results.h5 -o 12_A_output

results.json file content:
{
    "RESULTS": [
        {
            "format": "xdmf",
            "name": "12_A_run_results"
        }
    ]
}

Offline

#2 2019-05-31 10:21:40

Matthias Bürgler
Developer
From: Zürich
Registered: 2019-04-04
Posts: 150

Re: JSON validation errors while generating output

Hi
The structure of the results.json was updated shortly before the release of BASEMENT v3pre and was not yet updated in the tutorial files. The result.json should look like this:

{
    "RESULTS": {
        "EXPORT": [
            {"format": "xdmf"}
        ]
    }
}

Sorry for the inconvenience and best regards
Matthias

Offline

Board footer

Powered by FluxBB