Skip to content

Commit

Permalink
Merge pull request #114 from LateButSteady/inst_win
Browse files Browse the repository at this point in the history
Enabling setup.py installation in Windows (Following issue #113, #88)
  • Loading branch information
JisuJung928 committed Dec 29, 2023
2 parents c7e2473 + dd01837 commit d69dc23
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
#include <immintrin.h>
#include <algorithm>
#ifdef _WIN32
#include <cmath>
inline void sincos(double x, double* sinx, double* cosx){
*sinx = sin(x);
*cosx = cos(x);
}
#else
#include <math.h>
#endif
#include "mkl.h"
#include <assert.h>

Expand Down
8 changes: 8 additions & 0 deletions simple_nn/features/symmetry_function/symmetry_functions.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#define _USE_MATH_DEFINES
#ifdef _WIN32
#include <cmath>
inline void sincos(double x, double* sinx, double* cosx){
*sinx = sin(x);
*cosx = cos(x);
}
#else
#include <math.h>
#endif
/*
Code for calculate symmetry function.
This code is used for both Python and LAMMPS code
Expand Down

0 comments on commit d69dc23

Please sign in to comment.