CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] OF_2.3.0 in HPC cluster with paths modified (https://www.cfd-online.com/Forums/openfoam-installation/152910-of_2-3-0-hpc-cluster-paths-modified.html)

aerospain May 12, 2015 08:09

OF_2.3.0 in HPC cluster with paths modified
 
Dear all,

I have the following problem with OF in a machine where it worked perfectly a couple of weeks ago.

What has happened since then? This HPC cluster (cluster01) has been joined to another cluster (cluster02), so let's call the new machine 'clusterXX', and the home directories of the users are not under /home anymore. Mine, for example, is under /data2. But, when logging to clusterXX the session starts under /home/<user>

I have made a couple of changes to my /home/<user>/.bashrc file to define the new value for $FOAM_RUN, a 'cd' command pointing to my /data2/<user> location, and I also have the following line:
source /data2/<user>/OpenFOAM/bashrc being bashrc a copy of the file /installation_directory/etc/bashrc so I can make any modifications that could solve my problem.

When submitting my jobs in clusterXX with the command qsub [OPTIONS] <script_file>, OpenFOAM looks for the /0 /system and /constant directories in /data2/<user>, instead of /data2/<user>/OpenFOAM/<user>-2.3.0/run/<project_name>

Because different users have their home directories under different /data#/ we cannot re-install OF again. We would like to find a list of "local" changes that users can make to their .bashrc and OF bashrc so OF knows where the project directory is located.

By the way, if I run foamInstallationTest I get the following FATAL Error:

OpenFOAM environment not configured

Thanks

aerospain May 13, 2015 10:02

Problem solved!!!!
 
Hi guys,

I am replying to myself to close this problem and give hints to anyone who could step into the same situation I have been in for the last couple of weeks.

Copy the file /<installation_path>/etc/bashrc in your own OpenFOAM directory, and manage CAREFULLY the environment variables.

I was overwriting, I don't know how, some instructions by setting the FOAM_RUN variable at an inappropriate time during the submission of the simulation jobs to the cluster nodes.

That's it! simplesss!!!


All times are GMT -4. The time now is 23:11.