Skip to content
Snippets Groups Projects
Commit 7f2eefae authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Change handling of outputs

The function `writeVTK` does not exist anymore. The syntax works now
has follows.
```
import scheme;
import mesh;
import math;
import writer;

let m: mesh, m = cartesian2dMesh((0,0),(1,1), (40,40));
let vtk: writer, vtk = vtk_writer("f", 0.01);

let rho0: R^2->R,   x -> x[0] + x[1];
let u0:   R^2->R^2, x -> (1,2);

let rho : Vh, rho = interpolate(m, P0(), rho0);
let u : Vh, u = interpolate(m, P0(), u0);

let time: R, time = 0; write(vtk, (name_output(rho, "rho"),
name_output(u, "u")), time);
```

Note that the second argument in the `vtk_writer` function is the time
period between two outputs.
parent 3766c8ba
No related branches found
No related tags found
1 merge request!75Feature/language discretization
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment