# Solving Poisson Equation on 1D mesh with Dirichlet BC

Hello,

so assume you want to solve:

on [0,1] mesh with let’s say N=5 cells (i.e. 6 nodes). For the basis, we want to use tent functions. I.e. something like this Tent functions

The cells are of width h=1/N, so they are equidistant.

I somehow fail to find out how I can use such a simple 1D mesh.

Please have a look at LaplacianCurve.edp.
Very little adjustements are needed, see below.

``````load "msh3"

meshL ThL3=Sline(6,[x,0,0]);
real[int] bb(6);
boundingbox(ThL3,bb);
fespace Vh(ThL3,P1);
func f = 1 ;