Skip to content

Commit 54d1cf2

Browse files
committed
#60: update eigen; remove pressio repos and clone on configuration; update code to pressio 0.15.0 (16+17 changes to come)
1 parent 578880c commit 54d1cf2

File tree

2,671 files changed

+247103
-1062996
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,671 files changed

+247103
-1062996
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ build
33
end-to-end-roms/__pycache__/
44
end-to-end-roms/customizations_2d_swe/__pycache__/
55
.idea
6+
tpls/pressio-*

CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,11 @@ get_version_number("version.txt" PressioTutorials_VERSION_PATCH)
3131
set(PressioTutorials_VERSION "${PressioTutorials_VERSION_MAJOR}.${PressioTutorials_VERSION_MINOR}.${PressioTutorials_VERSION_PATCH}")
3232
message("pressio-tutorials version = ${PressioTutorials_VERSION}")
3333

34-
# Get Pressio libraries
35-
set(PRESSIO_REPOS "rom" "ops" "log")
34+
#===================================================
35+
# fetch pressio libraries
36+
#===================================================
37+
38+
set(PRESSIO_REPOS "demoapps" "rom" "ops" "log")
3639
foreach(repo IN LISTS PRESSIO_REPOS)
3740
if (NOT EXISTS ${CMAKE_SOURCE_DIR}/tpls/pressio-${repo})
3841
execute_process(

docs/source/build.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ More details on dependencies
5050

5151
The tutorials have the following dependencies:
5252

53-
- pressio-rom C++ library: contains the C++ code that this tutorials repo convers
53+
- pressio-rom C++ library: contains the C++ code that this tutorials repo covers
5454
- pressio-demoapps: provides a suite of physics problems that are used in the tutorials to demonstrate the functionalities of pressio
5555
- Eigen: is the library used by pressio-demoapps
5656
- Python: is used in pressio-demoapps to implement all the ROM workflow drivers
57+
58+
During configuration, all Pressio repositories will be automatically cloned inside of the tutorials directory.

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
project = "pressio-tutorials"
4646
copyright = u"2021, National Technology & Engineering Solutions of Sandia, LLC (NTESS)"
4747

48-
version = "0.16.0"
48+
version = "0.17.0"
4949

5050
# The full version, including alpha/beta/rc tags.
5151
release = version

end-to-end-roms/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ add_subdirectory(
44
${CMAKE_CURRENT_BINARY_DIR}/yamlcpp)
55

66
include_directories(
7-
${CMAKE_CURRENT_SOURCE_DIR}/../tpls/eigen/eigen3
7+
${CMAKE_CURRENT_SOURCE_DIR}/../tpls/eigen-3.4.0
88
${CMAKE_CURRENT_SOURCE_DIR}/../tpls/pressio-demoapps/include
99
${CMAKE_CURRENT_SOURCE_DIR}/../tpls #this is needed to include the pressio_cmake_config.h
1010
${CMAKE_CURRENT_SOURCE_DIR}/../tpls/pressio-rom/include

end-to-end-roms/cpp/main.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
//@HEADER
4747
*/
4848

49+
#include "pressio_cmake_config.h"
4950
#include "pressiodemoapps/swe2d.hpp"
50-
5151
#include "pressio/ode_steppers_explicit.hpp"
5252
#include "pressio/ode_steppers_implicit.hpp"
5353
#include "pressio/ode_advancers.hpp"
@@ -111,8 +111,8 @@ std::string check_and_get_inputfile(int argc, char *argv[])
111111

112112
int main(int argc, char *argv[])
113113
{
114-
pressio::log::initialize(pressio::logto::terminal);
115-
pressio::log::setVerbosity({pressio::log::level::info});
114+
PRESSIOLOG_INITIALIZE(pressiolog::LogLevel::info);
115+
116116

117117
// local scope because it is helps
118118
{
@@ -147,6 +147,6 @@ int main(int argc, char *argv[])
147147
std::cout << "elapsed " << fs.count() << std::endl;
148148
}
149149

150-
pressio::log::finalize();
150+
PRESSIOLOG_FINALIZE();
151151
return 0;
152152
}

tpls/eigen-3.4.0/Eigen/Cholesky

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
// This file is part of Eigen, a lightweight C++ template library
2+
// for linear algebra.
3+
//
4+
// This Source Code Form is subject to the terms of the Mozilla
5+
// Public License v. 2.0. If a copy of the MPL was not distributed
6+
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
7+
8+
#ifndef EIGEN_CHOLESKY_MODULE_H
9+
#define EIGEN_CHOLESKY_MODULE_H
10+
11+
#include "Core"
12+
#include "Jacobi"
13+
14+
#include "src/Core/util/DisableStupidWarnings.h"
15+
16+
/** \defgroup Cholesky_Module Cholesky module
17+
*
18+
*
19+
*
20+
* This module provides two variants of the Cholesky decomposition for selfadjoint (hermitian) matrices.
21+
* Those decompositions are also accessible via the following methods:
22+
* - MatrixBase::llt()
23+
* - MatrixBase::ldlt()
24+
* - SelfAdjointView::llt()
25+
* - SelfAdjointView::ldlt()
26+
*
27+
* \code
28+
* #include <Eigen/Cholesky>
29+
* \endcode
30+
*/
31+
32+
#include "src/Cholesky/LLT.h"
33+
#include "src/Cholesky/LDLT.h"
34+
#ifdef EIGEN_USE_LAPACKE
35+
#ifdef EIGEN_USE_MKL
36+
#include "mkl_lapacke.h"
37+
#else
38+
#include "src/misc/lapacke.h"
39+
#endif
40+
#include "src/Cholesky/LLT_LAPACKE.h"
41+
#endif
42+
43+
#include "src/Core/util/ReenableStupidWarnings.h"
44+
45+
#endif // EIGEN_CHOLESKY_MODULE_H

0 commit comments

Comments
 (0)