Libbum / Wafer

Parallelized 3D FDTD Schrödinger Equation Solver
MIT License
21 stars 2 forks source link

Scripting input #27

Closed Libbum closed 7 years ago

Libbum commented 7 years ago

Implements #20.

Script expects to read from stdin, and wants a json struct with the following info:

{
    "grid": {
        "x": 50,
        "y": 50,
        "z": 50,
        "dn": 0.01
    }
}

which is designed to be extensible, but for now this is what Wafer will send it. Totally possible to call the script from the command line to test its output too. The script will output the result to stdout, which is captured and used as an input.

Additions to the rust codebase include a non-serialisable item in the config struct which lists the location of the script, as well as a command line option to give a custom location.