Skip to content

Commit

Permalink
Merge pull request #19 from stanmoore1/kk_fixes
Browse files Browse the repository at this point in the history
Small changes needed for Kokkos and Makefile build
  • Loading branch information
yury-lysogorskiy authored Oct 13, 2023
2 parents 7ae1ec5 + 5ce1041 commit 2b18cf9
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ML-PACE/ace/ace_b_evaluator.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ class ACEBEvaluator : public ACEEvaluator {

void init(ACEBBasisSet *basis_set);

// active sets
map<SPECIES_TYPE, Array2D<DOUBLE_TYPE>> A_active_set_inv;

bool is_linear_extrapolation_grade = true;

void resize_projections();
Expand All @@ -57,6 +54,9 @@ class ACEBEvaluator : public ACEEvaluator {

public:

// active sets
map<SPECIES_TYPE, Array2D<DOUBLE_TYPE>> A_active_set_inv;

ACEBEvaluator() = default;

explicit ACEBEvaluator(ACEBBasisSet &bas) {
Expand Down
39 changes: 39 additions & 0 deletions yaml-cpp/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
SHELL = /bin/sh

# ------ FILES ------

SRC = $(wildcard src/*.cpp)


# ------ DEFINITIONS ------

LIB = libyaml-cpp.a
OBJ = $(SRC:.cpp=.o)


# ------ SETTINGS ------
CXXFLAGS = -O3 -fPIC -Iinclude

ARCHIVE = ar
ARCHFLAG = -rc
USRLIB =
SYSLIB =

# ------ MAKE PROCEDURE ------

lib: $(OBJ)
$(ARCHIVE) $(ARFLAGS) $(LIB) $(OBJ)

# ------ COMPILE RULES ------

%.o: %.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@

# ------ CLEAN ------
clean: clean-all

clean-all:
-rm -f *~ $(OBJ) $(LIB)

clean-build:
-rm -f *~ $(OBJ)

0 comments on commit 2b18cf9

Please sign in to comment.