Skip to content

Commit

Permalink
Merge pull request #30 from SeisSol/thomas/fix_compiling_dependencies
Browse files Browse the repository at this point in the history
fix compiler names, add https clone address of git repository
  • Loading branch information
krenzland committed Feb 23, 2022
2 parents 9ca6daa + 1790272 commit 91199ba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 5 additions & 3 deletions doc/compiling_dependencies.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ Alternatively for gcc compilers on SupermucNG:

.. code-block:: bash
export FC=mpigcc
export FC=mpifc
export CXX=mpigxx
export CC=mpifc
export CC=mpigcc
2. Asagi

Expand All @@ -38,8 +38,9 @@ Alternatively to build from source:
.. code-block:: bash
git clone git@github.com:jbeder/yaml-cpp
git checkout yaml-cpp-0.6.3
# git clone https://github.com/jbeder/yaml-cpp.git
cd yaml-cpp
git checkout yaml-cpp-0.6.3
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$HOME
make -j 4
Expand All @@ -52,6 +53,7 @@ Alternatively to build from source:
.. code-block:: bash
git clone git@github.com:uphoffc/ImpalaJIT
# git clone https://github.com/uphoffc/ImpalaJIT.git
cd ImpalaJIT
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$HOME
Expand Down
8 changes: 7 additions & 1 deletion tools/easicube.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,13 @@ int main(int argc, char** argv) {
std::cerr << "from, to, and N must have 3 dimensions" << std::endl;
return -1;
}

for (unsigned n : N) {
if (n < 2) {
std::cerr << "number of grid points in each dimension should be greater than 1"
<< std::endl;
return -1;
}
}
unsigned nGP = 1;
for (unsigned n : N) {
nGP *= n;
Expand Down

0 comments on commit 91199ba

Please sign in to comment.