Dear Marta,
"ex trader" <sellopt(a)gmx.com> writes:
> Hi. I am on debian, installed correctly libboosst libraries, meshpy and pyublas (pip) but when
> I try to install hedge (pip), I always get this error:
>
> In file included from src/wrapper/wrap_base.cpp:20:0:
> src/cpp/base.hpp:29:29: fatal error: pyublas/numpy.hpp: No existe el fichero o el
> directorio
> #include <pyublas/numpy.hpp>
>
> Can you please help me? Installation instructions by manifests .xml seem to be deprecated. I
> kindly regard your attention and would appreciate an updated page to install hedge step by
> step.
I no longer actively maintain hedge or its computational
infrastructure. Its successor code lives here:
https://gitlab.tiker.net/inducer/grudge
Be aware though that this code is still a bit rough around the
edges. (and therefore only 'semi-public' at this point)
Best,
Andreas
--
Andreas Kloeckner
Room 4318 (Siebel Center), University of Illinois at Urbana-Champaign
https://andreask.cs.illinois.edu/aboutme/
+1-217-244-6401
Hi,
I would like to try to reproduce some of the results of this paper
http://rspb.royalsocietypublishing.org/content/470/2171/20140080
and looked at Hedge as an interesting blend between C++ and python. I
have run into some compilation problem though. I've tried many things.
My best approach so far was to follow the guidelines here:
http://wiki.tiker.net/DevEnvironmentHowto?action=show&redirect=Repo
After doing
repo init -u http://gitlab.tiker.net/inducer/akprojects.git -m hedge.xml
and exluding pycuda I got the project compiled. However, when I run an
example I get an error (see below). Looks like a simple dependency
problem. The file definitley exists in boost-numeric-bindings, but I
don't know how to tell hedge to look there.
Also I am running it all on Arch and python3 is the default one there. I
think am managing it and I don't it's related to the error but I am
mentioning it just in case.
Please let know if you have any suggestions,
Robert
In file included from /home/robert/.cache/codepy/codepy-compiler-cache-v5-py2.7.8.final.0/ee2d4eb9c9db65cba2e1a2e6e339d74d/module.cpp:2:0:
/home/robert/download/hedge/hedge/hedge/include/hedge/volume_operators.hpp:31:49: fatal error: boost/numeric/bindings/blas/blas3.hpp: No such file or directory
#include <boost/numeric/bindings/blas/blas3.hpp>
^
compilation terminated.
FAILED compiler invocation: g++ -pthread -fno-strict-aliasing -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -fPIC -O3 -DNDEBUG -march=native -mtune=native -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro -Xlinker -export-dynamic -DNDEBUG -I/usr/include/python2.7 -I/usr/lib/python2.7/site-packages/numpy/core/include -I/home/robert/download/hedge/pyublas/pyublas/include -I/home/robert/download/hedge/hedge/hedge/include /home/robert/.cache/codepy/codepy-compiler-cache-v5-py2.7.8.final.0/ee2d4eb9c9db65cba2e1a2e6e339d74d/module.cpp -L/usr/lib -lboost_python -lpython2.7 -lpthread -ldl -lutil -o /home/robert/.cache/codepy/codepy-compiler-cache-v5-py2.7.8.final.0/ee2d4eb9c9db65cba2e1a2e6e339d74d/module.so
Traceback (most recent call last):
File "burgers.py", line 229, in <module>
main()
File "burgers.py", line 170, in main
rhs = op.bind(discr)
File "/home/robert/download/hedge/hedge/hedge/models/burgers.py", line 140, in bind
self.op_template(with_sensor=sensor is not None))
File "/home/robert/download/hedge/hedge/hedge/discretization/__init__.py", line 1295, in compile
type_hints)
File "/home/robert/download/hedge/hedge/hedge/backends/jit/__init__.py", line 412, in __init__
[self.diff_builtin, JitDifferentiator(discr)])
File "/home/robert/download/hedge/hedge/hedge/backends/jit/__init__.py", line 408, in pick_faster_func
for f in choices)
File "/usr/lib/python2.7/site-packages/pytools/__init__.py", line 896, in argmin2
for arg, item in it:
File "/home/robert/download/hedge/hedge/hedge/backends/jit/__init__.py", line 408, in <genexpr>
for f in choices)
File "/home/robert/download/hedge/hedge/hedge/backends/jit/__init__.py", line 407, in <genexpr>
(f, min(benchmark(f) for i in range(attempts)))
File "/home/robert/download/hedge/hedge/hedge/backends/jit/__init__.py", line 385, in bench_diff
for i in range(discr.dimensions)], test_field)
File "/home/robert/download/hedge/hedge/hedge/backends/jit/diff.py", line 225, in __call__
matrices[0].shape)
File "/usr/lib/python2.7/site-packages/pytools/__init__.py", line 469, in wrapper
result = method(self, *args, **kwargs)
File "/home/robert/download/hedge/hedge/hedge/backends/jit/diff.py", line 186, in make_diff
compiled_func = mod.compile(self.discr.toolchain).diff
File "/home/robert/download/hedge/codepy/codepy/bpl.py", line 169, in compile
str(self.generate())+"\n", **kwargs)
File "/home/robert/download/hedge/codepy/codepy/jit.py", line 178, in extension_from_string
False)
File "/home/robert/download/hedge/codepy/codepy/jit.py", line 385, in compile_from_string
toolchain.build_extension(ext_file, [source_path], debug=debug)
File "/home/robert/download/hedge/codepy/codepy/toolchain.py", line 192, in build_extension
raise CompileError, "module compilation failed"
codepy.CompileError: module compilation failed
--
Another offspring of the axiom of choice
http://en.wikipedia.org/wiki/Banach–Tarski_paradox
Hi all,
first of all my thanks to Andreas for making Hedge code available.
I am looking for a solution to do some DG analysis in the field of solid
mechanics, and Hedge looked promising, as I am pretty accustomed to Python.
However by looking at the documentation I am not really sure if it is really
the tool for me, nor if the effort I would need to make it work as I wish
would be sensible or not.
I am interested in solid mechanics problems which have solutions with evolving
discontinuities across some subdomain, usually a surface or a line ( I am
thinking of crack propagation inside bodies).
I know there many techniques to address allow for such a feature in the
solution, so I am wondering if Hedge have some built-in support for this kind
of problems.
In case it hasn't and if you are familiar with these technique, do you think
it would be hard to modify the code to model problems like the one mentioned
above?
Thank you,
--
Francesco Caimmi
Laboratorio di Ingegneria dei Polimeri
http://www.chem.polimi.it/polyenglab/
Politecnico di Milano - Dipartimento di Chimica,
Materiali e Ingegneria Chimica “Giulio Natta”
P.zza Leonardo da Vinci, 32
I-20133 Milano
Tel. +39.02.2399.4711
Fax +39.02.7063.8173
francesco.caimmi(a)polimi.it
Skype: fmglcaimmi (please arrange meetings by e-mail)
GPG Public Key : http://goo.gl/64dDo
Hi.
I'm new user of this power tool, and I have a few questions.
# Can Hedge run with PyOpenCl (this is because in my research group
only have ATI's GPUs).
# When a I find a Heat template?
# Do you know about some paper that use this tool?
In my group, we research about root growth, for now in one dimension more time.
Thanks.
Fnbellomo
Hello I was wondering if there is a simple way to extract a matrix form for the RHS operator in maxwells equations. I was hoping to experiment with the IMEX-RK routine but that requires a matrix form the linear RHS operator. I found what I think may be an example of that in '[thesis-experiments.git] / 2009-11-maxwell-spectrum / max-spec.py’ but I just wanted to confirm with you that is indeed what you were doing in the build_mat function. And just for the sake of me really understanding, would you mind explaining a bit what exactly you did?
It looks like you are generating a 'unit vector’ for a given degree of freedom (if we have a column vector of length N then we iterate over N and say all entries of the column vector is 0 except for the current iteration), plugging into your RHS function and then iterating. But I’m not totally sure if i understand why that would work.
Thanks for the great code! very clean and fully featured
Hi Praveen,
hedge(a)praveen.e4ward.com writes:
> I am implementing your artificial viscosity approach
>
> http://arxiv.org/pdf/1102.3190v2.pdf
>
> in my own code
>
> https://code.google.com/p/cfdlab/source/browse/trunk/deal.ii/dg/1d_euler_le…
>
> It works for some problems (sod problem) but not for others (like Shu-Osher
> problem). Do you have any code available which I could try.
I've attached some code that I found that I used when we wrote the
paper. No guarantees that it'll work, though.
Andreas
Peter17 <peter017(a)gmail.com> writes:
> I am sorry but I still have the same error even after updating Hedge:
> in test_jit_discretization.py, 13 tests are failing out of 17, with
> the same error message as below.
I fixed another issue in hedge's git tree, and
test_jit_discretization.py passes for me now.
Andreas