Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
merging with develop before release
  • Loading branch information
bbercovici committed Nov 22, 2018
2 parents b6164be + a99cd9e commit dea832f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/source/cmake)

# Compiler flags
add_definitions(-Wall -O2 )

# Enable C++17
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
set(CMAKE_CXX_STANDARD 11)

# Include directories
include_directories(include)
Expand Down
1 change: 0 additions & 1 deletion Tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ endif()

cmake_minimum_required(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.0)
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/source/cmake)
set(CMAKE_CXX_FLAGS "-std=c++14")

add_definitions(-Wall -O2 )
include_directories(include)
Expand Down
11 changes: 4 additions & 7 deletions source/SHARMLib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ namespace SHARMLib {
double * r2,
bool normalized) {



/* result accumulators */
double Cnm [NM_DIM_MAX + 1] [NM_DIM_MAX + 1], Snm [NM_DIM_MAX + 1] [NM_DIM_MAX + 1];
double mixingFactors [NM_DIM_MAX + 1] [NM_DIM_MAX + 1] [NM_DIM_MAX + 1]; /* (i!) (j!) (k!) / (n+3)! */
Expand Down Expand Up @@ -115,16 +117,12 @@ namespace SHARMLib {
}
/* for s */


Cnm2f = arma::zeros<arma::mat>(n_degree + 1, n_degree + 1);
Snm2f = arma::zeros<arma::mat>(n_degree + 1, n_degree + 1);

for (int m = 0; m < n_degree + 1; ++m) {

for (int n = m; n < n_degree + 1; ++n) {

Cnm2f.row(n)(m) = Cnm [n][m];
Snm2f.row(n)(m) = Snm [n][m];
Cnm2f(n,m) = Cnm [n][m];
Snm2f(n,m) = Snm [n][m];

}
/*// For n */
Expand Down Expand Up @@ -642,7 +640,6 @@ namespace SHARMLib {
const arma::vec & pos,
double ref_radius){


double r_sat = arma::norm(pos);
double x_sat = pos(0);
double y_sat = pos(1);
Expand Down

0 comments on commit dea832f

Please # to comment.