Skip to content

Commit

Permalink
2.3.1 Release Prepartion (#126)
Browse files Browse the repository at this point in the history
* Warning removal.

* Archer makefile.

* Beautify for 2.3.1

I also changed the version number.
  • Loading branch information
william-dawson authored May 10, 2019
1 parent e10113f commit b034c9e
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
################################################################################
## Basic Setup
cmake_minimum_required (VERSION 3.2)
project(NTPoly VERSION 2.3)
project(NTPoly VERSION 2.3.1)
enable_language(Fortran)

################################################################################
Expand Down
2 changes: 1 addition & 1 deletion Examples/ComplexMatrix/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void ConstructGuoMatrix(const NTPoly::Matrix_ps &InMat,
temp = tlist.GetTripletAt(i);
temp_c.index_row = temp.index_row;
temp_c.index_column = temp.index_column;
temp_c.point_value = std::complex<double>(0.0,1.0);
temp_c.point_value = std::complex<double>(0.0, 1.0);
clist.Append(temp_c);
}
NTPoly::Matrix_ps CMatrix(SMat.GetActualDimension());
Expand Down
5 changes: 2 additions & 3 deletions Examples/GraphTheory/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Generic modules
import random
import numpy
import sys

# NT Poly
Expand All @@ -8,9 +10,6 @@
from mpi4py import MPI
comm = MPI.COMM_WORLD

import numpy

import random

##########################################################################
if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion Examples/HydrogenAtom/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Generic modules
import numpy
import sys

# NTPoly
Expand All @@ -8,7 +9,6 @@
from mpi4py import MPI
comm = MPI.COMM_WORLD

import numpy

##########################################################################
if __name__ == "__main__":
Expand Down
1 change: 1 addition & 0 deletions Examples/MatrixMaps/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def __call__(self):
return True
return False


##########################################################################
if __name__ == "__main__":
rank = comm.Get_rank()
Expand Down
2 changes: 1 addition & 1 deletion Source/C/EigenBounds_c.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ void GershgorinBounds_wrp(const int *ih_Hamiltonian, double *max_value,
void PowerBounds_wrp(const int *ih_Hamiltonian, double *max_value,
const int *ih_solver_parameters);
void DistributedEigenDecomposition_wrp(const int *ih_this, int* ih_eigenvectors,
const int *ih_solver_parameters);
const int *ih_solver_parameters);
#endif
2 changes: 1 addition & 1 deletion Source/C/ExponentialSolvers_c.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
void ComputeExponential_wrp(const int *ih_Input, int *ih_Output,
const int *ih_solver_parameters);
void ComputeExponentialPade_wrp(const int *ih_Input, int *ih_Output,
const int *ih_solver_parameters);
const int *ih_solver_parameters);
void ComputeLogarithm_wrp(const int *ih_Input, int *ih_Output,
const int *ih_solver_parameters);

Expand Down
2 changes: 1 addition & 1 deletion Source/Fortran/DensityMatrixSolversModule.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1275,7 +1275,7 @@ SUBROUTINE ScaleAndFold(Hamiltonian, InverseSquareRoot, nel, Density, &
REAL(NTREAL) :: energy_value, energy_value2
!! Temporary Variables
TYPE(MatrixMemoryPool_p) :: pool
INTEGER :: outer_counter, inner_counter
INTEGER :: outer_counter
INTEGER :: total_iterations

!! Optional Parameters
Expand Down
20 changes: 20 additions & 0 deletions Targets/Archer.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
################################################################################
# Build file for the archer system.
# Using the default cray compilers
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_C_COMPILER cc)
set(CMAKE_Fortran_COMPILER ftn)
set(CMAKE_CXX_COMPILER CC)

# Library Files
#set(TOOLCHAIN_LIBS "-lblas")

# Release suggestions
set(CXX_TOOLCHAINFLAGS_RELEASE "-O3 -dynamic")
set(F_TOOLCHAINFLAGS_RELEASE "-O3 -dynamic")

# Debug suggestions
set(CXX_TOOLCHAINFLAGS_DEBUG "-dynamic")
set(F_TOOLCHAINFLAGS_DEBUG "-dynamic -DPURE=")

set(TARGET_SUPPORTS_SHARED_LIBS Yes)
4 changes: 2 additions & 2 deletions Targets/Linux.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ set(CXX_TOOLCHAINFLAGS_RELEASE "-O3 -openmp -lgomp")
set(F_TOOLCHAINFLAGS_RELEASE "-O3 -cpp -openmp")

# Debug suggestions
set(CXX_TOOLCHAINFLAGS_DEBUG "-O0 -openmp")
set(F_TOOLCHAINFLAGS_DEBUG "-O0 -cpp -fcheck=all")
set(CXX_TOOLCHAINFLAGS_DEBUG "-O0 -openmp -Wall")
set(F_TOOLCHAINFLAGS_DEBUG "-O0 -cpp -fcheck=all -Wall")
1 change: 1 addition & 0 deletions UnitTests/test_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from os import environ, chdir
from os.path import join


def parse_command(fin, num_commands=1):
'''
Keep parsing a command which is wrapped in the github markdown style
Expand Down

0 comments on commit b034c9e

Please sign in to comment.