create module ignores -output option
also no easy way to pass in preferences
No child items are currently assigned. Use child items to break down this issue into smaller parts.
Link issues together to show that they're related. Learn more.
Activity
- Mark OLESEN closed via commit 8577ea1fd06193704c749a41778fb094685c9daa
closed via commit 8577ea1fd06193704c749a41778fb094685c9daa
- Maintainer
Hello, as discussed with @mark I have done a few modification to the script. Attached my version. foamCreateModuleInclude
thanks to your new file, now my procedure if fully automitized. No need to change "by hand" the script. In my build, see the Modulefile.tcl.IccProfBDW attached, ModuleInclude.tcl.IccProfBDW is built using the following line
$PKG_INSTALL_DIR/bin/tools/foamCreateModuleInclude -prefs=$WM_PROJECT_SITE/etc/prefs.sh -debug -preload=$WM_PROJECT_SITE/module-prereq.$BA_PKG_MINOR_RELEASE -output=ModuleInclude.tcl.$BA_PKG_MINOR_RELEASE $PKG_INSTALL_DIR
I have done some slight change to the script.
I need these changes to be compatible with my module load structure (see MODULEFILE.IccProfBDW attached MODULEFILE.IccProfBDW) The first time you load the module, it is the following variables are required
/# required environment variables:// // source /gpfs/scratch/userinternal/ispisso0/modules/local_applications/openfoam+/v1812/intelmpi--2019--binary/OpenFOAM-v1812+/ModuleInclude.tcl.IccProfBDW// if { [module-info mode] == "load"} {// file mkdir $env(FOAM_RUN)// file mkdir $env(FOAM_USER_APPBIN)// file mkdir $env(FOAM_USER_LIBBIN)// }/
In that way, the FOAM_USER_* and FOAM_RUN env variables are created in the $HOME folder of the user
The changes I have done are:
- line 227, remove the unset of FOAM_RUN
- lines 263-278, comment some unalias i need
- line 290, adde line for FOAM_RUN
- lines 320-331. Duplicate the Enviroment list with set. It is needed by the MODULEFILE. file, to load the env in a correct way.
For sure it not the most efficient way to do it. But I have now a full automitized scripts that can be used for our devel project and in production I hope the above is clear Ivan
By Ivan Spisso on 2019-02-05T17:01:14 (imported from GitLab project)
- Mark OLESEN mentioned in commit 8577ea1fd06193704c749a41778fb094685c9daa
mentioned in commit 8577ea1fd06193704c749a41778fb094685c9daa
- Mark OLESEN mentioned in commit 9cbe613e
mentioned in commit 9cbe613e