# Source MOOSE Environment
#if [ -f /opt/moose/environments/moose_profile ]; then
#. /opt/moose/environments/moose_profile
#fi
and instead write the following alias for moose in the ~/.bashrc
alias mooseswitch1='. /home/username/moose-projects/etc/bashrc'
ii. Create a file with name bashrc (or can choose anyother name e.g. bashhome or any other names) in ~/moose-projects/etc/ folder and there copy paste the above commented
source of moose environment and then uncomment it there.
# Source MOOSE Environment
if [ -f /opt/moose/environments/moose_profile ]; then
. /opt/moose/environments/moose_profile
fi
iii. When we open a new terminal, then we need to type the alias of moose environment , namely mooseswitch1 to do every task related to moose software (mpich interface is active in this case).
username@username-Aspire-1602M:~$ mooseswitch1
username@username-Aspire-1602M:~$ which mpirun
/opt/moose/mpich/mpich-3.2/gcc-opt/bin/mpirun
username@username-Aspire-1602M:~$
iv. When the alias switch of moose is not turned on , openmpi if installed and set default is rendered active in this context and the work related to installation and running of OpenFOAM can be done
username@username-Aspire-1602M:~$ which mpirun
/usr/bin/mpirun
Cheers,
Yours Sincerely,
Anil Kunwar
Hi All,
In context we have to install MOOSE framework and OpenFOAM in a single Ubuntu 16.04 computer, we may have to deal with the different mpi interface they use.
1. MOOSE uses mpich interface.
2. OpenFoam uses openmpi interface
In order to work with both of them, the concept of using alias for MOOSE environment can be one of the solutions.
Steps:
i. Comment the moose environment source in ~/.bashrc file# Source MOOSE Environment
#if [ -f /opt/moose/environments/moose_profile ]; then
#. /opt/moose/environments/moose_profile
#fi
iii. When we open a new terminal, then we need to type the alias of moose environment , namely mooseswitch1 to do every task related to moose software (mpich interface is active in this case).
username@username-Aspire-1602M:~$ mooseswitch1
You received this message because you are subscribed to the Google Groups "moose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users...@googlegroups.com.
Visit this group at https://groups.google.com/group/moose-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/845997702.4890779.1492694034993%40mail.yahoo.com.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/moose-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/9fd134c7-c650-4b9a-9371-6ae0fe92ec56%40googlegroups.com.