GithubHelp home page GithubHelp logo

install petsc on mac about rheotool HOT 18 CLOSED

fppimenta avatar fppimenta commented on June 25, 2024
install petsc on mac

from rheotool.

Comments (18)

Manoochehrb avatar Manoochehrb commented on June 25, 2024

how can i fi it?please help

from rheotool.

Manoochehrb avatar Manoochehrb commented on June 25, 2024

how can i fix it?

from rheotool.

Manoochehrb avatar Manoochehrb commented on June 25, 2024

and when i run command ./allwmake
In file included from segregated/hypreSolver/hypreSolver.H:38:0,
from segregated/hypreSolver/hypreSolvers.C:26:
lnInclude/HypreIJSolver.H:43:10: fatal error: HYPRE_krylov.h: No such file or directory
#include <HYPRE_krylov.h>
^~~~~~~~~~~~~~~~
compilation terminated.
/opt/openfoam6/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/segregated/hypreSolver/hypreSolvers.o' failed
make: *** [Make/linux64GccDPInt32Opt/segregated/hypreSolver/hypreSolvers.o] Error 1

from rheotool.

Manoochehrb avatar Manoochehrb commented on June 25, 2024

please help me

from rheotool.

fppimenta avatar fppimenta commented on June 25, 2024

RheoTool is built and tested based on Linux OS. I cannot provide support for mac OS, but I can suggest a few things.

Option 1:
The error when you run Allwmake is simply because Petsc is not installed. So you need first to install Petsc in your OS and, since script ./installPetsc seems not be helping, you will need to do it manually. This shall not be too difficult and you can google it on the web. When you ./configure Petsc, be sure to include the options specified in ./installPetsc, since some are essential for rheoTool (others are optional). Also, do not forget at the end to define/export env vars PETSC_DIR, PETSC_ARCH and LD_LIBRARY_PATH.

Option 2:
Install a virtual machine in your macos and run openfoam and rheotool from there in a ubuntu OS.

Option 3:
If coupled solvers are not important for you, install the previous version of rheoTool (3.0), which you can find in the latest release:
https://github.com/fppimenta/rheoTool/archive/v3.0.tar.gz
This version does not requires Petsc, so if you can install & run openfoam (4.0 or 6.0) in your mac, then you will also be able to install & run rheoTool. However, no coupled solvers.

from rheotool.

Manoochehrb avatar Manoochehrb commented on June 25, 2024

thanks for your help
when i want compile i have this error
OpenFOAM-6(44) ./Allwmake -j 4
Compiling enabled on 4 cores
Allwmake /home/openfoam/of60/src
./Allwmake: 7: ./Allwmake: ./Allwmake: Permission denied

from rheotool.

Manoochehrb avatar Manoochehrb commented on June 25, 2024

i am installing rheotool 3 and above error become

from rheotool.

Manoochehrb avatar Manoochehrb commented on June 25, 2024

in the first option ./configure not working and command not found apear
https://www.mcs.anl.gov/petsc/documentation/installation.html.

from rheotool.

Manoochehrb avatar Manoochehrb commented on June 25, 2024

bash: ./configure: No such file or directory

from rheotool.

Manoochehrb avatar Manoochehrb commented on June 25, 2024

can u help me by online apps like anydesk and connect with my mac?im phd student and i need rheotool for my thesis

from rheotool.

fppimenta avatar fppimenta commented on June 25, 2024

About the Allwmake error, it seems you don't have admin privilege. Either sudo chmod the script or simply run:

sudo ./Allwmake -j 4

About the ./configure of Petsc, it is not that simple in macos. You should follow specific instructions for macos, which are not given in the page you mention. You can find them elsewhere.

from rheotool.

Manoochehrb avatar Manoochehrb commented on June 25, 2024

OpenFOAM-6(55) sudo ./Allwmake -j 4
bash: sudo: command not found

from rheotool.

Manoochehrb avatar Manoochehrb commented on June 25, 2024

i cant find petsc on mac in web.i doesnt exist

from rheotool.

fppimenta avatar fppimenta commented on June 25, 2024

About the error, something is wrong with your system, not with rheoTool. I suggest this as a first approach:

https://apple.stackexchange.com/questions/282299/sudo-command-not-found

How did you install openfoam 6.0?

About Petsc in macos, yes it does exist. Just look better.

from rheotool.

Manoochehrb avatar Manoochehrb commented on June 25, 2024

I installed virtualbox and installing ubuntu and openfoam6 and install petsc but when i compile and run ./Allwmake i have an error

from rheotool.

Manoochehrb avatar Manoochehrb commented on June 25, 2024

ca5843b2-f72a-4350-98e4-cf60d6b21d22

from rheotool.

fppimenta avatar fppimenta commented on June 25, 2024

The error tells you that Hypre was not found. Since Hypre comes with Petsc, then Petsc was not correctly installed. You can confirm that by running these commands in the SAME terminal where you run Allwmake:

echo $LD_LIBRARY_PATH
echo $PETSC_DIR
echo $PETSC_ARCH

Please post the output.

from rheotool.

Manoochehrb avatar Manoochehrb commented on June 25, 2024

Thanks for your help
Its done
I can run rheotool
Thank u

from rheotool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.