-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
X11 can be used within docker with the options -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix within the docker run command and enabling it with xhost +local:root.
However, in this docker image I'm not able to display the first tutorial code:
// Define mesh boundary
border C(t=0, 2*pi){x=cos(t); y=sin(t);}
// The triangulated domain Th is on the left side of its boundary
mesh Th = buildmesh(C(50));
// The finite element space defined over Th is called here Vh
fespace Vh(Th, P1);
Vh u, v;// Define u and v as piecewise-P1 continuous functions
// Define a function f
func f= x*y;
// Get the clock in second
real cpu=clock();
// Define the PDE
solve Poisson(u, v, solver=LU)
= int2d(Th)( // The bilinear part
dx(u)*dx(v)
+ dy(u)*dy(v)
)
- int2d(Th)( // The right hand side
f*v
)
+ on(C, u=0); // The Dirichlet boundary condition
// Plot the result
plot(u);
// Display the total computational time
cout << "CPU time = " << (clock()-cpu) << endl;
I know that X11 is working because I test it with the command xeyes (after installing x11-apps in the container), however the plot of the previous code is not being displayed.
One hint that I have is when I type FreeFem++ alone, there is a line after the help that says without default ffglut: ffglut. However I do not know how to install it or what flag to activate to be able to install it.
Any ideas?
Metadata
Metadata
Assignees
Labels
No labels