Replies: 2 comments 2 replies
-
Well, I don't know if you noticed my username, but it is not F Pinho. And BTW I am not professor... Option 1: Option 2: #export PETSC_DIR=[something for 3.7.7] export PETSC_DIR=[something for 3.13] Then install rheoTool with Allwmake. Now all you have to do is your selector, such that you can use 3.7.7 or 3.13 on demand. A simple way is to uncomment the lines for PETSC_DIR and PETSC_ARCH for 3.7.7 and put the new ones inside an alias, something like that: alias of70='source /opt/openfoam7/etc/bashrc; export PETSC_DIR=[something for 3.13]; export PETSC_ARCH=[something for 3.13]; export LD_LIBRARY_PATH=$PETSC_DIR/$PETSC_ARCH/lib:$LD_LIBRARY_PATH' Then after opening a new terminal you should type of70 before using rheoTool, which will load the correct paths. You don't have to do anything to run your old programs, as the older petsc is 'loaded' by default. If PETSC_DIR and PETSC_ARCH for petsc 3.7.7 are not defined in your .bashrc, the rationale is the same: unset old vars -> set new vars, without forgetting LD_LIBRARY_PATH. Option3: Extra: |
Beta Was this translation helpful? Give feedback.
-
Option 2 should work and I guess the error you are getting is specific of Hypre and not Petsc, i.e. if something was wrong with Petsc dirs and libs the error would be of another type. So my question is: are you sure that Hypre was successfully installed with Petsc? Are you able to run any Petsc tutorial/example using hypre? I would suggest you the following (you will just be trying a more recent version of petsc):
If the above doesn't work, then send the configure.log created by Petsc and copy-paste the whole compilation result (error) of Allwmake. |
Beta Was this translation helpful? Give feedback.
-
Dear Prof F. Pinho,
sorry for bothering, but could you help me to solve an issue I had while trying to install rheoTool?. I tried to find solutions online for my particular problem but I could not find any solid answer.
I am following the user guide and trying to install rheoTool in my computer, but I had a problem while installing the PETSc libraries. After running the file "installPetsc", I received the following message in terminal:
UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):
The environmental variable PETSC_DIR /usr/lib/petscdir/3.7.7/x86_64-linux-gnu-real MUST be the current directory /home/hugo/OpenFOAM/hugo-8/ThirdParty/petsc-3.13.3.
I noticed that I already have a variable PETSC_DIR defined in my ~/.bashrc, and this is because I am currently using a CFD software called HiGFlow, which also uses the PETSc libraries (the software is using the version 3.7.7). The user guide recommends to be cautious while managing these variables because the file "installPetsc" might duplicate the PETSC_DIR variables. I am not an expert in bash scripting, so I don't know exactly how to do in this case but I tried to comment the variable #export PETSC_DIR = directory. However, this could not solve my issue.
I would like to keep my previously set variable PETSC_DIR that uses the version 3.7.7, and then define a new variable (let's say, PETSC_DIR2, which will be used by rheoTool as PETSC_DIR2 = /home/hugo/OpenFOAM/hugo-8/ThirdParty/petsc-3.13.3. Is this possible? I am thinking in modifying the file "installPetsc" and substitute PETSC_DIR2 for PETSC_DIR, but I am not sure if this is the only modification needed to be made there. Could this work? If that's not the case, could you please recommend me other alternatives?
I would highly appreciate your help.
Best,
Hugo
Beta Was this translation helpful? Give feedback.
All reactions