Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix conda 1.9.5 #19

Merged
merged 3 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ else()
enable_language(Fortran)

if (DEBUG)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -stdlib=libc++ -O0 -Drestrict=")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -stdlib=libc++ -O0 -fpermissive -Drestrict=")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -std=c++17 -stdlib=libc++")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -std=c++17 -stdlib=libc++")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -stdlib=libc++ -O3 -Drestrict=")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -stdlib=libc++ -O3 -fpermissive -Drestrict=")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -std=c++17 -stdlib=libc++")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -std=c++17 -stdlib=libc++")
endif()
Expand Down
2 changes: 1 addition & 1 deletion conda.recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ requirements:
- liblapack * *openblas # [not win]
- libblas * *netlib # [win]
- liblapack * *netlib # [win]
- armadillo
- armadillo >=12.6
- carma
- llvm-openmp
- ninja
Expand Down
1 change: 1 addition & 0 deletions include/simcoon/FTensor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
in namespace FTensor. */

#pragma once

#include <cmath>
#include <complex>
#include <type_traits>
Expand Down
3 changes: 1 addition & 2 deletions include/simcoon/FTensor/Christof/Christof_pointer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ namespace FTensor
template <class T, int Tensor_Dim0, int Tensor_Dim12>
class Christof<T *, Tensor_Dim0, Tensor_Dim12>
{
mutable T *restrict
data[Tensor_Dim0][(Tensor_Dim12 * (Tensor_Dim12 + 1)) / 2];
mutable T *data[Tensor_Dim0][(Tensor_Dim12 * (Tensor_Dim12 + 1)) / 2];

public:
template <class... U> Christof(U *... d) : data{d...}
Expand Down
4 changes: 2 additions & 2 deletions include/simcoon/FTensor/Ddg/Ddg_pointer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ namespace FTensor
template <class T, int Tensor_Dim01, int Tensor_Dim23>
class Ddg<T *, Tensor_Dim01, Tensor_Dim23>
{
mutable T *restrict data[(Tensor_Dim01 * (Tensor_Dim01 + 1)) / 2]
[(Tensor_Dim23 * (Tensor_Dim23 + 1)) / 2];
mutable T *data[(Tensor_Dim01 * (Tensor_Dim01 + 1)) / 2]
[(Tensor_Dim23 * (Tensor_Dim23 + 1)) / 2];

public:
/* There are two operator(int,int,int,int)'s, one for non-consts
Expand Down
3 changes: 1 addition & 2 deletions include/simcoon/FTensor/Dg/Dg_pointer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ namespace FTensor
template <class T, int Tensor_Dim01, int Tensor_Dim2>
class Dg<T *, Tensor_Dim01, Tensor_Dim2>
{
mutable T *restrict
data[(Tensor_Dim01 * (Tensor_Dim01 + 1)) / 2][Tensor_Dim2];
mutable T *data[(Tensor_Dim01 * (Tensor_Dim01 + 1)) / 2][Tensor_Dim2];

public:
template <class... U> Dg(U *... d) : data{d...}
Expand Down
2 changes: 1 addition & 1 deletion include/simcoon/FTensor/Tensor0.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace FTensor

template <class T> class Tensor0<T *>
{
mutable T *restrict data;
mutable T *data;

public:
Tensor0(T *d) : data(d) {}
Expand Down
2 changes: 1 addition & 1 deletion include/simcoon/FTensor/Tensor1/Tensor1_pointer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace FTensor
/* Note that the T *'s are mutable, so the pointer can change,
allowing iterating over a array. */

mutable T *restrict data[Tensor_Dim];
mutable T *data[Tensor_Dim];

public:
/* Initializations for varying numbers of elements. */
Expand Down
2 changes: 1 addition & 1 deletion include/simcoon/FTensor/Tensor2/Tensor2_pointer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace FTensor
template <class T, int Tensor_Dim0, int Tensor_Dim1>
class Tensor2<T *, Tensor_Dim0, Tensor_Dim1>
{
mutable T *restrict data[Tensor_Dim0][Tensor_Dim1];
mutable T *data[Tensor_Dim0][Tensor_Dim1];

public:
/* Initializations for varying numbers of elements. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace FTensor
{
template <class T, int Tensor_Dim> class Tensor2_symmetric<T *, Tensor_Dim>
{
mutable T *restrict data[(Tensor_Dim * (Tensor_Dim + 1)) / 2];
mutable T *data[(Tensor_Dim * (Tensor_Dim + 1)) / 2];

public:
template <class... U> Tensor2_symmetric(U *... d) : data{d...}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ namespace FTensor
template <class T, int Tensor_Dim0, int Tensor_Dim12>
class Tensor3_antisymmetric<T *, Tensor_Dim0, Tensor_Dim12>
{
mutable T *restrict
data[Tensor_Dim0][(Tensor_Dim12 * (Tensor_Dim12 - 1)) / 2];
mutable T *data[Tensor_Dim0][(Tensor_Dim12 * (Tensor_Dim12 - 1)) / 2];

public:
template <class... U> Tensor3_antisymmetric(U *... d) : data{d...}
Expand Down
Loading