mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-12-22 20:34:58 +01:00
updated etc
This commit is contained in:
parent
c714fdc5f3
commit
f52640d7ce
1
etc/cflags.rc
Normal file
1
etc/cflags.rc
Normal file
@ -0,0 +1 @@
|
|||||||
|
export CFLAGS="$CFLAGS --std=gnu99"
|
@ -1,7 +1,7 @@
|
|||||||
# Configuration of IRPF90 package
|
# Configuration of IRPF90 package
|
||||||
|
|
||||||
# Set the path of IRPF90 here:
|
# Set the path of IRPF90 here:
|
||||||
export IRPF90_PATH=${QP_ROOT}/external/irpf90-v2.0.0
|
export IRPF90_PATH=${QP_ROOT}/external/irpf90
|
||||||
export PATH=${PATH}:${IRPF90_PATH}/bin
|
export PATH=${PATH}:${IRPF90_PATH}/bin
|
||||||
|
|
||||||
export IRPF90=${IRPF90_PATH}/bin/irpf90
|
export IRPF90=${IRPF90_PATH}/bin/irpf90
|
||||||
|
@ -19,4 +19,3 @@
|
|||||||
# export QP_NIC=lo
|
# export QP_NIC=lo
|
||||||
# export QP_NIC=ib0
|
# export QP_NIC=ib0
|
||||||
|
|
||||||
|
|
||||||
|
13
etc/ninja.rc
13
etc/ninja.rc
@ -1,13 +0,0 @@
|
|||||||
# Configuration for the Ninja package
|
|
||||||
|
|
||||||
export NINJA=${QP_ROOT}/bin/ninja
|
|
||||||
|
|
||||||
function ninja () {
|
|
||||||
if [[ -f ${QP_ROOT}/build.ninja ]] ; then
|
|
||||||
${QP_ROOT}/bin/ninja "$@"
|
|
||||||
else
|
|
||||||
>&2 echo "Error: build.ninja does not exists.
|
|
||||||
You need to run ./configure first."
|
|
||||||
fi
|
|
||||||
|
|
||||||
}
|
|
@ -4,8 +4,10 @@ if [[ -z $OPAMROOT ]]
|
|||||||
then
|
then
|
||||||
|
|
||||||
# Comment these lines if you have a system-wide OCaml installation
|
# Comment these lines if you have a system-wide OCaml installation
|
||||||
export OPAMROOT=${QP_ROOT}/external/opam
|
export PATH="${QP_ROOT}/external/ocaml-bundle/bootstrap/bin:$PATH"
|
||||||
|
if [[ -f "${QP_ROOT}/external/ocaml-bundle/bootstrap/bin/opam" ]] ; then
|
||||||
|
eval $(opam env --root "${QP_ROOT}/external/ocaml-bundle/opam" --set-root)
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
source ${OPAMROOT}/opam-init/init.sh > /dev/null 2> /dev/null || true
|
source ${OPAMROOT}/opam-init/init.sh > /dev/null 2> /dev/null || true
|
||||||
|
|
||||||
|
1
etc/openmp.rc
Normal file
1
etc/openmp.rc
Normal file
@ -0,0 +1 @@
|
|||||||
|
export OMP_NESTED=True
|
@ -3,7 +3,7 @@
|
|||||||
QP_PYTHON=
|
QP_PYTHON=
|
||||||
|
|
||||||
# Load dependencies
|
# Load dependencies
|
||||||
for i in ezfio.rc irpf90.rc ninja.rc ocaml.rc
|
for i in ezfio.rc irpf90.rc ocaml.rc
|
||||||
do
|
do
|
||||||
source $i
|
source $i
|
||||||
done
|
done
|
||||||
@ -34,9 +34,9 @@ export PATH=$(qp_prepend_export "PATH" "${QP_PYTHON}":"${QP_ROOT}"/bin:"${QP_ROO
|
|||||||
|
|
||||||
export LD_LIBRARY_PATH=$(qp_prepend_export "LD_LIBRARY_PATH" "${QP_ROOT}"/lib)
|
export LD_LIBRARY_PATH=$(qp_prepend_export "LD_LIBRARY_PATH" "${QP_ROOT}"/lib)
|
||||||
|
|
||||||
|
|
||||||
export LIBRARY_PATH=$(qp_prepend_export "LIBRARY_PATH" "${QP_ROOT}"/lib:"${QP_ROOT}"/lib64)
|
export LIBRARY_PATH=$(qp_prepend_export "LIBRARY_PATH" "${QP_ROOT}"/lib:"${QP_ROOT}"/lib64)
|
||||||
|
|
||||||
|
export PKG_CONFIG_PATH=$(qp_prepend_export "PKG_CONFIG_PATH" "${QP_ROOT}"/lib/pkgconfig)
|
||||||
export C_INCLUDE_PATH=$(qp_prepend_export "C_INCLUDE_PATH" "${QP_ROOT}"/include)
|
export C_INCLUDE_PATH=$(qp_prepend_export "C_INCLUDE_PATH" "${QP_ROOT}"/include)
|
||||||
export CPATH=$(qp_prepend_export "CPATH" "${QP_ROOT}"/include)
|
export CPATH=$(qp_prepend_export "CPATH" "${QP_ROOT}"/include)
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ function qp()
|
|||||||
|
|
||||||
"prompt")
|
"prompt")
|
||||||
shift
|
shift
|
||||||
python2 $QP_ROOT/scripts/hello.py
|
python3 $QP_ROOT/scripts/hello.py
|
||||||
function _check_ezfio() {
|
function _check_ezfio() {
|
||||||
if [[ -d ${EZFIO_FILE} ]] ; then
|
if [[ -d ${EZFIO_FILE} ]] ; then
|
||||||
printf "\e[0;32m|${EZFIO_FILE}>\e[m"
|
printf "\e[0;32m|${EZFIO_FILE}>\e[m"
|
||||||
@ -204,6 +204,9 @@ _qp_Complete()
|
|||||||
uninstall)
|
uninstall)
|
||||||
COMPREPLY=( $(compgen -W "$(qp_plugins list -i)" -- $cur ) )
|
COMPREPLY=( $(compgen -W "$(qp_plugins list -i)" -- $cur ) )
|
||||||
return 0;;
|
return 0;;
|
||||||
|
remove)
|
||||||
|
COMPREPLY=( $(compgen -W "$(qp_plugins list -i)" -- $cur ) )
|
||||||
|
return 0;;
|
||||||
create)
|
create)
|
||||||
COMPREPLY=( $(compgen -W "-n " -- $cur ) )
|
COMPREPLY=( $(compgen -W "-n " -- $cur ) )
|
||||||
return 0;;
|
return 0;;
|
||||||
|
Loading…
Reference in New Issue
Block a user