clawpack / clawpack

Package for solving hyperbolic systems of partial differential equations
BSD 3-Clause "New" or "Revised" License
171 stars 100 forks source link

How to install DClaw #254

Open charithaRdissanayaka opened 2 weeks ago

charithaRdissanayaka commented 2 weeks ago

Hello everyone,

Please provide me a method , how to install Dclaw. I am a phd student, and I want to do landslide simulation by using DClaw. I tried to install DClaw in ubuntu 20.04 installed computer. But I got an error. Your kind help i highly appreciated and providing detail step of installation process is urgently needed for me.

mandli commented 2 weeks ago

Can you provide the error you ran into?

charithaRdissanayaka commented 2 weeks ago

Hello sir,

Thank you very much for your kind reply and I extremely sorry for my late response. I already installed NHWAVE and FUNWAVE-TVD. then I tried to compile D-Claw. I unable to find a method of installation. I followed the method explained in compilation. but error occurred. could you please be kind enough to provide me a detail method of compilation. I am not using WSL. I am using Ubuntu 20.04 installed PC.

mandli commented 2 weeks ago

Did you follow the installation instructions here? If so, we would need to see the output on the terminal to know how to help and suggest next steps.

charithaRdissanayaka commented 2 weeks ago

Hello sir,

thank you very much for your kind reply. I will follow the method that you are suggested and will make an update for you.

charithaRdissanayaka commented 2 weeks ago

Hello sir,

below error I got.

eng@Precision-3660:~/DClaw$ python> import dclaw python: can't open file 'dclaw': [Errno 2] No such file or directory eng@Precision-3660:~/DClaw$ python> import dclaw.topotools as dt python: can't open file 'dclaw.topotools': [Errno 2] No such file or directory

charithaRdissanayaka commented 2 weeks ago

make new Makefile:162: /path/to/D-Claw/home/eng/DClaw/D-Claw/util/Makefile.common: No such file or directory make: *** No rule to make target '/path/to/D-Claw/home/eng/DClaw/D-Claw/util/Makefile.common'. Stop.

mandli commented 2 weeks ago

You need to replace /path/to/D-Claw in

export CLAW=/path/to/D-Claw

with the correct path to DClaw on your computer. It looks like maybe it is "/home/eng/DClaw"?

The python was meant to be run from python, not the command line. You can open a python prompt by typing python at the command line. This should allow you to test to make sure that the line export PYTHONPATH=$CLAW/python:$PYTHONPATH worked.

mandli commented 2 weeks ago

Also, if you do not want to do that every time you open a new terminal put the commands

export CLAW=/path/to/D-Claw
export PYTHONPATH=$CLAW/python:$PYTHONPATH

in your .bashrc or .bash_profile files in your home directory. I also might suggest taking a look at some of the tutorials you can find at something like software-carpentry to get an idea of what all of this is doing so you can customize and interact with it the way you want.

charithaRdissanayaka commented 2 weeks ago

hello sir

according to your instruction I did changes. make new command work up to certain time and stopped. I did these in my personal PC.

I attached the compilation output as a text file. please check it and let me know what is the issue.

logfile.txt

mandli commented 2 weeks ago

That can happen if the order of compilation is incorrect. Someone who is more familiar with the code may be able to help.