Skip to content

Commit

Permalink
TODO: Switching off workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
tdegeus committed Jul 9, 2022
1 parent 6d5ffaf commit a77637c
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 273 deletions.
39 changes: 0 additions & 39 deletions docs/examples/statics/FixedDisplacements_LinearElastic/example.cpp
Original file line number Diff line number Diff line change
@@ -1,42 +1,3 @@
// todo remove
#include <xtensor/xtensor.hpp>

namespace GMatTensor {
namespace detail {

template <size_t RANK, class T>
struct allocate {
};

template <size_t RANK, class EC, size_t N, xt::layout_type L, class Tag>
struct allocate<RANK, xt::xtensor<EC, N, L, Tag>> {
using type = typename xt::xtensor<EC, RANK, L, Tag>;
};

#ifdef XTENSOR_FIXED_HPP
template <size_t RANK, class EC, class S, xt::layout_type L>
struct allocate<RANK, xt::xtensor_fixed<EC, S, L>> {
using type = typename xt::xtensor<EC, RANK, L>;
};
#endif

#ifdef XTENSOR_FIXED_HPP
template <size_t RANK, class EC, class S, xt::layout_type L, bool SH, class Tag>
struct allocate<RANK, xt::xfixed_container<EC, S, L, SH, Tag>> {
using type = typename xt::xtensor<EC, RANK, L, Tag>;
};
#endif

#ifdef PY_TENSOR_HPP
template <size_t RANK, class EC, size_t N, xt::layout_type L>
struct allocate<RANK, xt::pytensor<EC, N, L>> {
using type = typename xt::pytensor<EC, RANK, L>;
};
#endif

} // namespace detail
} // namespace GMatTensor

#include <GMatElastic/Cartesian3d.h>
#include <GooseFEM/GooseFEM.h>
#include <GooseFEM/MatrixPartitioned.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,42 +1,3 @@
// todo remove
#include <xtensor/xtensor.hpp>

namespace GMatTensor {
namespace detail {

template <size_t RANK, class T>
struct allocate {
};

template <size_t RANK, class EC, size_t N, xt::layout_type L, class Tag>
struct allocate<RANK, xt::xtensor<EC, N, L, Tag>> {
using type = typename xt::xtensor<EC, RANK, L, Tag>;
};

#ifdef XTENSOR_FIXED_HPP
template <size_t RANK, class EC, class S, xt::layout_type L>
struct allocate<RANK, xt::xtensor_fixed<EC, S, L>> {
using type = typename xt::xtensor<EC, RANK, L>;
};
#endif

#ifdef XTENSOR_FIXED_HPP
template <size_t RANK, class EC, class S, xt::layout_type L, bool SH, class Tag>
struct allocate<RANK, xt::xfixed_container<EC, S, L, SH, Tag>> {
using type = typename xt::xtensor<EC, RANK, L, Tag>;
};
#endif

#ifdef PY_TENSOR_HPP
template <size_t RANK, class EC, size_t N, xt::layout_type L>
struct allocate<RANK, xt::pytensor<EC, N, L>> {
using type = typename xt::pytensor<EC, RANK, L>;
};
#endif

} // namespace detail
} // namespace GMatTensor

#include <GMatElastic/Cartesian3d.h>
#include <GooseFEM/GooseFEM.h>
#include <GooseFEM/MatrixPartitioned.h>
Expand Down
39 changes: 0 additions & 39 deletions docs/examples/statics/MixedPeriodic_LinearElastic/example.cpp
Original file line number Diff line number Diff line change
@@ -1,42 +1,3 @@
// todo remove
#include <xtensor/xtensor.hpp>

namespace GMatTensor {
namespace detail {

template <size_t RANK, class T>
struct allocate {
};

template <size_t RANK, class EC, size_t N, xt::layout_type L, class Tag>
struct allocate<RANK, xt::xtensor<EC, N, L, Tag>> {
using type = typename xt::xtensor<EC, RANK, L, Tag>;
};

#ifdef XTENSOR_FIXED_HPP
template <size_t RANK, class EC, class S, xt::layout_type L>
struct allocate<RANK, xt::xtensor_fixed<EC, S, L>> {
using type = typename xt::xtensor<EC, RANK, L>;
};
#endif

#ifdef XTENSOR_FIXED_HPP
template <size_t RANK, class EC, class S, xt::layout_type L, bool SH, class Tag>
struct allocate<RANK, xt::xfixed_container<EC, S, L, SH, Tag>> {
using type = typename xt::xtensor<EC, RANK, L, Tag>;
};
#endif

#ifdef PY_TENSOR_HPP
template <size_t RANK, class EC, size_t N, xt::layout_type L>
struct allocate<RANK, xt::pytensor<EC, N, L>> {
using type = typename xt::pytensor<EC, RANK, L>;
};
#endif

} // namespace detail
} // namespace GMatTensor

#include <GMatElastic/Cartesian3d.h>
#include <GooseFEM/GooseFEM.h>
#include <GooseFEM/MatrixPartitioned.h>
Expand Down
39 changes: 0 additions & 39 deletions docs/examples/statics/Periodic_ElastoPlastic/main.cpp
Original file line number Diff line number Diff line change
@@ -1,42 +1,3 @@
// todo remove
#include <xtensor/xtensor.hpp>

namespace GMatTensor {
namespace detail {

template <size_t RANK, class T>
struct allocate {
};

template <size_t RANK, class EC, size_t N, xt::layout_type L, class Tag>
struct allocate<RANK, xt::xtensor<EC, N, L, Tag>> {
using type = typename xt::xtensor<EC, RANK, L, Tag>;
};

#ifdef XTENSOR_FIXED_HPP
template <size_t RANK, class EC, class S, xt::layout_type L>
struct allocate<RANK, xt::xtensor_fixed<EC, S, L>> {
using type = typename xt::xtensor<EC, RANK, L>;
};
#endif

#ifdef XTENSOR_FIXED_HPP
template <size_t RANK, class EC, class S, xt::layout_type L, bool SH, class Tag>
struct allocate<RANK, xt::xfixed_container<EC, S, L, SH, Tag>> {
using type = typename xt::xtensor<EC, RANK, L, Tag>;
};
#endif

#ifdef PY_TENSOR_HPP
template <size_t RANK, class EC, size_t N, xt::layout_type L>
struct allocate<RANK, xt::pytensor<EC, N, L>> {
using type = typename xt::pytensor<EC, RANK, L>;
};
#endif

} // namespace detail
} // namespace GMatTensor

#include <GMatElastoPlastic/Cartesian3d.h>
#include <GooseFEM/GooseFEM.h>
#include <GooseFEM/MatrixPartitionedTyings.h>
Expand Down
39 changes: 0 additions & 39 deletions docs/examples/statics/Periodic_LinearElastic/main.cpp
Original file line number Diff line number Diff line change
@@ -1,42 +1,3 @@
// todo remove
#include <xtensor/xtensor.hpp>

namespace GMatTensor {
namespace detail {

template <size_t RANK, class T>
struct allocate {
};

template <size_t RANK, class EC, size_t N, xt::layout_type L, class Tag>
struct allocate<RANK, xt::xtensor<EC, N, L, Tag>> {
using type = typename xt::xtensor<EC, RANK, L, Tag>;
};

#ifdef XTENSOR_FIXED_HPP
template <size_t RANK, class EC, class S, xt::layout_type L>
struct allocate<RANK, xt::xtensor_fixed<EC, S, L>> {
using type = typename xt::xtensor<EC, RANK, L>;
};
#endif

#ifdef XTENSOR_FIXED_HPP
template <size_t RANK, class EC, class S, xt::layout_type L, bool SH, class Tag>
struct allocate<RANK, xt::xfixed_container<EC, S, L, SH, Tag>> {
using type = typename xt::xtensor<EC, RANK, L, Tag>;
};
#endif

#ifdef PY_TENSOR_HPP
template <size_t RANK, class EC, size_t N, xt::layout_type L>
struct allocate<RANK, xt::pytensor<EC, N, L>> {
using type = typename xt::pytensor<EC, RANK, L>;
};
#endif

} // namespace detail
} // namespace GMatTensor

#include <Eigen/Eigen>
#include <GMatElastic/Cartesian3d.h>
#include <GooseFEM/GooseFEM.h>
Expand Down
1 change: 1 addition & 0 deletions environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies:
- eigen
- gmatelastic
- gmatelastoplasticqpot
- qpot <0.12.0 # remove when "gmatelastoplasticqpot" is updated
- mathjax
- ninja
- numpy
Expand Down
39 changes: 0 additions & 39 deletions tests/gmat/hybrid-elastic.cpp
Original file line number Diff line number Diff line change
@@ -1,42 +1,3 @@
// todo remove
#include <xtensor/xtensor.hpp>

namespace GMatTensor {
namespace detail {

template <size_t RANK, class T>
struct allocate {
};

template <size_t RANK, class EC, size_t N, xt::layout_type L, class Tag>
struct allocate<RANK, xt::xtensor<EC, N, L, Tag>> {
using type = typename xt::xtensor<EC, RANK, L, Tag>;
};

#ifdef XTENSOR_FIXED_HPP
template <size_t RANK, class EC, class S, xt::layout_type L>
struct allocate<RANK, xt::xtensor_fixed<EC, S, L>> {
using type = typename xt::xtensor<EC, RANK, L>;
};
#endif

#ifdef XTENSOR_FIXED_HPP
template <size_t RANK, class EC, class S, xt::layout_type L, bool SH, class Tag>
struct allocate<RANK, xt::xfixed_container<EC, S, L, SH, Tag>> {
using type = typename xt::xtensor<EC, RANK, L, Tag>;
};
#endif

#ifdef PY_TENSOR_HPP
template <size_t RANK, class EC, size_t N, xt::layout_type L>
struct allocate<RANK, xt::pytensor<EC, N, L>> {
using type = typename xt::pytensor<EC, RANK, L>;
};
#endif

} // namespace detail
} // namespace GMatTensor

#include <Eigen/Eigen>
#include <GMatElastic/Cartesian3d.h>
#include <GooseFEM/GooseFEM.h>
Expand Down
39 changes: 0 additions & 39 deletions tests/gmat/hybrid-elastoplasticqpot.cpp
Original file line number Diff line number Diff line change
@@ -1,42 +1,3 @@
// todo remove
#include <xtensor/xtensor.hpp>

namespace GMatTensor {
namespace detail {

template <size_t RANK, class T>
struct allocate {
};

template <size_t RANK, class EC, size_t N, xt::layout_type L, class Tag>
struct allocate<RANK, xt::xtensor<EC, N, L, Tag>> {
using type = typename xt::xtensor<EC, RANK, L, Tag>;
};

#ifdef XTENSOR_FIXED_HPP
template <size_t RANK, class EC, class S, xt::layout_type L>
struct allocate<RANK, xt::xtensor_fixed<EC, S, L>> {
using type = typename xt::xtensor<EC, RANK, L>;
};
#endif

#ifdef XTENSOR_FIXED_HPP
template <size_t RANK, class EC, class S, xt::layout_type L, bool SH, class Tag>
struct allocate<RANK, xt::xfixed_container<EC, S, L, SH, Tag>> {
using type = typename xt::xtensor<EC, RANK, L, Tag>;
};
#endif

#ifdef PY_TENSOR_HPP
template <size_t RANK, class EC, size_t N, xt::layout_type L>
struct allocate<RANK, xt::pytensor<EC, N, L>> {
using type = typename xt::pytensor<EC, RANK, L>;
};
#endif

} // namespace detail
} // namespace GMatTensor

#include <Eigen/Eigen>
#include <GMatElastoPlasticQPot/Cartesian2d.h>
#include <GooseFEM/GooseFEM.h>
Expand Down

0 comments on commit a77637c

Please sign in to comment.