Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
tarekbardouni committed Dec 5, 2015
1 parent f2ce2b3 commit fcfb3eb
Show file tree
Hide file tree
Showing 462 changed files with 32,108 additions and 0 deletions.
Binary file modified README.md
Binary file not shown.
Binary file added bin/ERSN-OPENMC.jar
Binary file not shown.
12 changes: 12 additions & 0 deletions bin/config/Readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
The config directory contains the following files to tell to openmc and ERSN-OPENMC softwares where to find paths:

0. this Readme.txt
1. cross_sections.dir points to the full path of data/nndc/cross_sections.xml file
2. openmc.dir of binary .../openmc/bin/openmc file
3. scripts.dir of python .../openmc/scripts folder

You could change manually the paths if you don't need to reinstall openmc code.
In the case of fresh installation of openmc the files are configured automaticaly.



1 change: 1 addition & 0 deletions bin/config/cross_sections.dir
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/home/tarek/OpenMC-New/data/nndc/cross_sections.xml
1 change: 1 addition & 0 deletions bin/config/openmc.dir
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/home/tarek/OpenMC-New/openmc/bin/openmc
1 change: 1 addition & 0 deletions bin/config/scripts.dir
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/home/tarek/OpenMC-New/openmc/scripts
Binary file added bin/lib/jsyntaxpane-0.9.5-b29.jar
Binary file not shown.
28 changes: 28 additions & 0 deletions bin/scripts/get_hdf5.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash
#
wget ftp://ftp.hdfgroup.org/HDF5/current/src/hdf5-*.tar.gz
#
tar -xzvf hdf5-*.tar.gz

cd hdf5-*; ./configure --prefix=/opt/hdf5 --enable-fortran \
--enable-fortran2003
#
make
# make check
sudo make install
#
cd ..
rm hdf5-*.tar.gz
rm -R hdf5-*;

echo " *********************************************"
echo " installation of hdf5 has been finished"
echo " *********************************************"
echo " "
printf "Press 'CTRL+C' to exit : "
trap "exit" INT
while :
do
sleep 10000
done

29 changes: 29 additions & 0 deletions bin/scripts/get_hdf5_parallel.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash
#
echo " HDF5 IN PARALLEL MODE"
wget ftp://ftp.hdfgroup.org/HDF5/current/src/hdf5-*.tar.gz
#
tar -xzvf hdf5-*.tar.gz

cd hdf5-*; ./configure --prefix=/opt/hdf5 --enable-fortran \
--enable-fortran2003 --enable-parallel
#
make
# make check
sudo make install
#
cd ..
rm hdf5-*.tar.gz
rm -R hdf5-*;

echo " *********************************************"
echo " installation of hdf5 has been finished"
echo " *********************************************"
echo " "
printf "Press 'CTRL+C' to exit : "
trap "exit" INT
while :
do
sleep 10000
done

25 changes: 25 additions & 0 deletions bin/scripts/get_nndc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

openmc_dir=$1
if [ $openmc_dir !="" ]; then
tmp=$(cat ../config/cross_sections.dir)
xfolder=${tmp%/*}
cd $xfolder
cd ../..
openmc_dir=$(pwd)
fi
cd $openmc_dir/openmc/data
#
python get_nndc_data.py

echo " *********************************************"
echo " download of nndc data has been finished"
echo " *********************************************"
echo " "
printf "Press 'CTRL+C' to exit : "
trap "exit" INT
while :
do
sleep 10000
done

50 changes: 50 additions & 0 deletions bin/scripts/get_openmc-with-mpich2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#!/bin/bash
petsc=""
HDF5_STATUS=$2
PETSC_STATUS=$3

if [ $HDF5_STATUS=="USED" ]; then
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/hdf5/lib
export FC=h5pfc
else
export FC=mpif90
fi


if [ $PETSC_STATUS=="USED" ]; then
export PETSC_DIR= /opt/petsc-3.4.4
export PETSC_ARCH=linux-gnu-intel
PETSC_OPTION="-Dpetsc=on"
else
echo " PETSC NOT USED"
fi
cd $install_dir
#
git clone https://github.com/mit-crpg/openmc.git
#
cd openmc
#
git checkout master
#
make clean
#
find -iname '*cmake*' -not -name CMakeLists.txt -exec rm -rf {} \+

cmake -Ddebug=on $PETSC_OPTION .
#
make
#
sudo make install -e prefix=$install_dir/openmc

echo " ***********************************************************************************"
echo " Parallel version (MPICH2) of OpenMC has been installed succesfully"
echo " ***********************************************************************************"

echo " "
printf "Press 'CTRL+C' to exit : "
trap "exit" INT
while :
do
sleep 10000
done

62 changes: 62 additions & 0 deletions bin/scripts/get_openmc-with-openmpi.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
#!/bin/bash
##################################################################
PETSC_OPTION=""
INSTALL_DIR=$1
HDF5_STATUS=$2
PETSC_STATUS=$3


##################################################################
if [ $HDF5_STATUS=="USED" ]; then
echo "HDF5 USED"
export PATH=/opt/hdf5/bin:$PATH
export LD_LIBRARY_PATH=/opt/hdf5/lib:$LD_LIBRARY_PATH
export FC=h5pfc
else
export "HDF5 NOT USED"
fi

if [ $PETSC_STATUS=="NOT-USED" ]; then
export PETSC_DIR=/opt/petsc-3.4.4
export PETSC_ARCH=linux-gnu-intel
PETSC_OPTION="-Dpetsc=on"
echo "PTSC USED"
else
echo "PTSC NOT USED"
fi
########################################################
#
cd $INSTALL_DIR
#
git clone https://github.com/mit-crpg/openmc.git
#
cd openmc
#
git checkout master
#

#########################################################
make clean
#
find -iname '*cmake*' -not -name CMakeLists.txt -exec rm -rf {} \+

cmake -Ddebug=on -Dopenmp=on PETSC_OPTION .
#
make
#
sudo make install -e prefix=$INSTALL_DIR/openmc

#########################################################

echo " "
echo " ************************************************* "
echo " OpenMC // OMP version has been installed "
echo " ************************************************* "

echo " "
printf "Press 'CTRL+C' to exit : "
trap "exit" INT
while :
do
sleep 10000
done
66 changes: 66 additions & 0 deletions bin/scripts/get_openmc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
#!/bin/bash

PETSC_OPTION=""
INSTALL_DIR=$1
HDF5_STATUS=$2
PETSC_STATUS=$3

echo $HDF5_STATUS

if [ $HDF5_STATUS=="USED" ]; then
export PATH=/opt/hdf5/bin:$PATH
echo " HDF5_STATUS: USED"
export LD_LIBRARY_PATH=/opt/hdf5/lib:$LD_LIBRARY_PATH
HDF5=$(which h5fc)
if [ "$HDF5" != "/opt/hdf5/bin/h5fc" ]; then
export FC="gfortran"
echo " h5fc not found, gfortran is used "
else
export FC="h5fc"
echo " h5fc found "
fi
else
echo " HDF5_STATUS: NOT-USED"
fi


if [ $PETSC_STATUS=="USED" ]; then
echo " PETSC_STATUS: USED"
export PETSC_DIR=/opt/petsc-3.4.4
PETSC_OPTION="-Dpetsc=on"
else
echo " PETSC_STATUS: NOT-USED"
PETSC_OPTION=""
fi

#
cd $INSTALL_DIR
#
git clone https://github.com/mit-crpg/openmc.git
#
cd openmc
#
git checkout master
#
make clean
#
find -iname '*cmake*' -not -name CMakeLists.txt -exec rm -rf {} \+

cmake -Ddebug=on PETSC_OPTION .
#
make
sudo make install -e prefix=$INSTALL_DIR/openmc

echo " ************************************************* "
echo " OpenMC sequential version has been installed "
echo " ************************************************* "

echo " "
printf "Press 'CTRL+C' to exit : "
trap "exit" INT
while :
do
sleep 10000
done


32 changes: 32 additions & 0 deletions bin/scripts/get_petsc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/bash
#
wget http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-3.4.4.tar.gz
#
tar -xzvf petsc-3.4.4.tar.gz
#
cd petsc*; ./configure --prefix=/opt/petsc-3.4.4 --download-f-blas-lapack \
--with-shared-libraries \
--with-fortran-datatypes
#
make PETSC_ARCH=linux-gnu-intel PETSC_DIR= /opt/petsc-3.4.4
# make check
sudo make install
#
cd ..
#
rm petsc-3.4.4.tar.gz
#
rm -R petsc-3.4.4/

echo " ******************************************"
echo " PETSC-3.4.4 installing has been finished"
echo " ******************************************"

echo " "
printf "Press 'CTRL+C' to exit : "
trap "exit" INT
while :
do
sleep 10000
done

50 changes: 50 additions & 0 deletions bin/scripts/openmc-xml-validation.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@

#!/bin/bash
openmc_project_dir=$1
openmc_xml_validation_dir=$2
openmc_relaxng_dir=$3

# delete OpenMC XML file until it is empty
cmfd_file=$openmc_project_dir"/cmfd.xml"
plot_file=$openmc_project_dir"/plots.xml"
tallies_file=$openmc_project_dir"/tallies.xml"
#

if [ -f $cmfd_file ]; then
if [ -s $cmfd_file ];then
echo ""
else
rm $cmfd_file
fi
fi

if [ -f $plot_file ];then
if [ -s $plot_file ];then
echo ""
else
rm $plot_file
fi
fi

if [ -f $tallies_file ];then
if [ -s $tallies_file ];then
echo ""
else
rm $tallies_file
fi
fi

$openmc_xml_validation_dir -i $openmc_project_dir -r $openmc_relaxng_dir


echo " *********************************************"
echo " xml files validation has been finished"
echo " *********************************************"
echo " "
printf "Press 'CTRL+C' to exit : "
trap "exit" INT
while :
do
sleep 10000
done

Loading

0 comments on commit fcfb3eb

Please sign in to comment.