python Code translation to C++
Asked by
Olivier Balima
Dear all users
I wonder if you can help me in translating this portin of python code in dolfin to C++ version.
// Python code with fenics
...
mesh = UnitSquareMesh(
Omega = Vector (2)
for i in range(0,2):
Omega[i] += 1.0*i+1.0
boundary_markers = FacetFunction(
boundary_
for facet in facets(mesh):
p = facet.normal()
value = (Omega[
if (value < 0):
#print ' Inflow ', value
boundary_
// C++ code ? The porblem ins in the for loops on fecets(mesh) and how to get p = facet.normal() in c++
Thanks for your help
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Olivier Balima for more information if necessary.
To post a message you must log in.