diff --git a/.gitlab-ci.yml.tmp b/.gitlab-ci.yml similarity index 88% rename from .gitlab-ci.yml.tmp rename to .gitlab-ci.yml index d905eed8307f4b078806ba9f3aa1f400902aede4..f0452719b5350c1e8cef54b62a2b0353d2490708 100644 --- a/.gitlab-ci.yml.tmp +++ b/.gitlab-ci.yml @@ -1,4 +1,4 @@ -# gitlab-ci file for waves +# gitlab-ci file for Katoptron default: image: rboman/waves-py3:2020.3 @@ -37,18 +37,6 @@ format: when: on_failure allow_failure: true -build-no-tlnos: - <<: *global_tag_def - stage: build - script: - - git submodule init - - git submodule update - - rm -rf build workspace - - mkdir build - - cd build - - cmake -Wno-dev -C ../CMake/disable-trilinos.cmake .. - - make -j 8 - build: <<: *global_tag_def stage: build diff --git a/CMake/FindMPI4PY.cmake b/CMake/FindMPI4PY.cmake new file mode 100644 index 0000000000000000000000000000000000000000..9d4bb340d58c73fc7c83993c0c269de40e42c53a --- /dev/null +++ b/CMake/FindMPI4PY.cmake @@ -0,0 +1,42 @@ +# Copyright 2022 University of Liège +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +if(NOT MPI4PY_INCLUDE_DIR) + execute_process(COMMAND + "${PYTHON_EXECUTABLE}" "-c" "import mpi4py; print(mpi4py.get_include())" + OUTPUT_VARIABLE MPI4PY_INCLUDE_DIR + RESULT_VARIABLE MPI4PY_COMMAND_RESULT + OUTPUT_STRIP_TRAILING_WHITESPACE) + if(MPI4PY_COMMAND_RESULT) + message("waves/CMake/FindMPI4PY: mpi4py not found") + set(MPI4PY_FOUND FALSE) + else(MPI4PY_COMMAND_RESULT) + if (MPI4PY_INCLUDE_DIR MATCHES "Traceback") + message("waves/CMake/FindMPI4PY: mpi4py matches traceback") + ## Did not successfully include MPI4PY + set(MPI4PY_FOUND FALSE) + else (MPI4PY_INCLUDE_DIR MATCHES "Traceback") + ## successful + set(MPI4PY_FOUND TRUE) + set(MPI4PY_INCLUDE_DIR ${MPI4PY_INCLUDE_DIR} CACHE STRING "mpi4py include path") + endif (MPI4PY_INCLUDE_DIR MATCHES "Traceback") + endif(MPI4PY_COMMAND_RESULT) +else(NOT MPI4PY_INCLUDE_DIR) + set(MPI4PY_FOUND TRUE) +endif(NOT MPI4PY_INCLUDE_DIR) +# ---------------------------------------------------------------------------- + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(MPI4PY DEFAULT_MSG + MPI4PY_INCLUDE_DIR) diff --git a/dox/logo.jpg b/dox/logo.jpg new file mode 100644 index 0000000000000000000000000000000000000000..17aeb3377b96b8ec85fed719dd8b3fdc25bd6913 Binary files /dev/null and b/dox/logo.jpg differ