Skip to content

Commit

Permalink
Merge branch 'mpi' of gitlab.com:aduprop/aduprop into mpi
Browse files Browse the repository at this point in the history
  • Loading branch information
michel2323 committed Mar 20, 2018
2 parents 491e0ea + 8b588c0 commit f763e2d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
13 changes: 7 additions & 6 deletions include/ad.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ original variable.
#include <stdlib.h>
#include "parallel.hpp"
//#include "linsolve.hpp"
//
#ifdef __INTEL_COMPILER
#define RESTRICT restrict
#else
#define RESTRICT __restrict__
#endif


using namespace std;
using namespace alg;
Expand Down Expand Up @@ -859,12 +866,6 @@ void propagateAD(pVector<double>& m0, pMatrix<double>& cv0, System& sys,

double aux, kurt;

#ifdef __INTEL_COMPILER
#define RESTRICT restrict
#else
#define RESTRICT __restrict__
#endif

double * RESTRICT ptr_cv0 = cv0.get_datap();
double * RESTRICT ptr_cv_temp2 = cv_temp2.get_datap();
double * RESTRICT ptr_J = J.get_datap();
Expand Down
8 changes: 7 additions & 1 deletion include/alg.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
#include <vector> // std::vector
#include "tensor.hpp"

#ifdef __INTEL_COMPILER
#define RESTRICT restrict
#else
#define RESTRICT __restrict__
#endif

namespace alg {

// First, second and third order AD datatype
Expand Down Expand Up @@ -108,7 +114,7 @@ template <typename T> class pVector {

private:
size_t n;
T* data = NULL;
T* RESTRICT data = NULL;
};

template <typename T> inline size_t pVector<T>::dim() const {
Expand Down

0 comments on commit f763e2d

Please sign in to comment.