import dolfin as dlfn
# geometry
xlength=100.0 #[mm]
ylength=100.0 #[mm]
zlength=100.0 #[mm]
mesh=dlfn.BoxMesh(dlfn.Point(0.0, 0.0, 0.0),dlfn.Point(xlength, ylength, zlength), 1, 1, 1)
cells = dlfn.CellFunction('size_t',mesh)
facets = dlfn.FacetFunction('size_t',mesh)
dA = dlfn.Measure('ds', domain=mesh, subdomain_data=facets)
dV = dlfn.Measure('dx', domain=mesh, subdomain_data=cells)
# surface for bc
left = dlfn.CompiledSubDomain('near(x[0],0) && on_boundary')OSError: [Errno 2] No such file or directory: 'cmake'source activate fenicsproject
python example.pywhich cmake/Users/philippdiercks/anaconda2/envs/fenicsproject/bin/cmake
Traceback (most recent call last):
File "<ipython-input-3-a95e08be0fa3>", line 1, in <module>
runfile('/Users/philippdiercks/my-fenics-projects/Damage/what.py', wdir='/Users/philippdiercks/my-fenics-projects/Damage')
File "/Users/philippdiercks/anaconda2/lib/python2.7/site-packages/spyder/utils/site/sitecustomize.py", line 880, in runfile
execfile(filename, namespace)
File "/Users/philippdiercks/anaconda2/lib/python2.7/site-packages/spyder/utils/site/sitecustomize.py", line 94, in execfile
builtins.execfile(filename, *where)
File "/Users/philippdiercks/my-fenics-projects/Damage/what.py", line 20, in <module>
left = dlfn.CompiledSubDomain('near(x[0],0) && on_boundary')
File "/Users/philippdiercks/anaconda2/envs/fenicsproject/lib/python2.7/site-packages/dolfin/compilemodules/subdomains.py", line 148, in CompiledSubDomain
SubDomainClass = compile_subdomain_code(code, classname, mpi_comm=mpi_comm)
File "/Users/philippdiercks/anaconda2/envs/fenicsproject/lib/python2.7/site-packages/dolfin/compilemodules/subdomains.py", line 103, in compile_subdomain_code
compiled_module = compile_extension_module(code, mpi_comm=mpi_comm)
File "/Users/philippdiercks/anaconda2/envs/fenicsproject/lib/python2.7/site-packages/dolfin/compilemodules/jit.py", line 70, in mpi_jit
return local_jit(*args, **kwargs)
File "/Users/philippdiercks/anaconda2/envs/fenicsproject/lib/python2.7/site-packages/dolfin/compilemodules/compilemodule.py", line 603, in compile_extension_module
**instant_kwargs)
File "/Users/philippdiercks/anaconda2/envs/fenicsproject/lib/python2.7/site-packages/instant/build.py", line 577, in build_module
build_system)
File "/Users/philippdiercks/anaconda2/envs/fenicsproject/lib/python2.7/site-packages/instant/build.py", line 151, in recompile
ret, output = get_status_output(cmd)
File "/Users/philippdiercks/anaconda2/envs/fenicsproject/lib/python2.7/site-packages/instant/output.py", line 152, in get_status_output
stderr=subprocess.STDOUT)
File "/Users/philippdiercks/anaconda2/envs/fenicsproject/lib/python2.7/site-packages/subprocess32.py", line 825, in __init__
restore_signals, start_new_session)
File "/Users/philippdiercks/anaconda2/envs/fenicsproject/lib/python2.7/site-packages/subprocess32.py", line 1574, in _execute_child
raise child_exception_type(errno_num, err_msg)
OSError: [Errno 2] No such file or directory: 'cmake'--
You received this message because you are subscribed to the Google Groups "fenics-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fenics-support+unsubscribe@googlegroups.com.
To post to this group, send email to fenics-support@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fenics-support/a75f8919-03e9-42da-a6b7-e42af715b271%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To post to this group, send email to fenics-...@googlegroups.com.
To post to this group, send email to fenics-support@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fenics-support/CAKsSmEWpzApTJj5W9nmxR0GZz%3DUGVQngYMGZXwHx-rXiaiweRg%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to fenics-suppor...@googlegroups.com.
To post to this group, send email to fenics-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fenics-support/a75f8919-03e9-42da-a6b7-e42af715b271%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "fenics-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fenics-suppor...@googlegroups.com.
To post to this group, send email to fenics-...@googlegroups.com.
I'm new to Spyder and don't know which Path you are talking about exactly.The Options that I know are:1. Change the Path in PyhtonPath Manager2. Change the Path for Python Interpreter (which is /Users/philippdiercks/anaconda2/bin by default)Normally I would add the above paths to PythonPath Manager to find the modules like dolfin etc. in the Anaconda environment fenicsproject.Can yo please be specific about the path you mean and how to change it?
To unsubscribe from this group and stop receiving emails from it, send an email to fenics-support+unsubscribe@googlegroups.com.
To post to this group, send email to fenics-support@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fenics-support/aefee9dc-3c69-4e10-850b-53d7589d2f71%40googlegroups.com.