| 1 |
|
#ifndef __FORTRAN_WRAP_DEFINES_H__ |
| 2 |
|
#define __FORTRAN_WRAP_DEFINES_H__ |
| 3 |
|
|
| 4 |
< |
// this defines some function lists, that are too long to keep track |
| 5 |
< |
// of everywhere |
| 4 |
> |
#define __C |
| 5 |
> |
#include "fSimulation.h" |
| 6 |
|
|
| 7 |
< |
#define makeAtypeList ( int* unique_ident, int* isLJ, int* isSticky, int* isDipole, int* isGB, int* isEAM,double* lj_epslon, double* lj_sigma, double* dipole_moment, int* status ) |
| 7 |
> |
// here we declare the function pointer typedefs for fortran functions |
| 8 |
|
|
| 9 |
< |
#define newEAMtype_List ( double* lattice_constant, int* eam_nrho,double* eam_drho,int* eam_nr, double* eam_dr, double* eam_rcut, double* eam_rvals, double* eam_rhovals, double* eam_Frhovals, int* eam_ident, int* status ) |
| 9 |
> |
extern "C" { |
| 10 |
|
|
| 11 |
+ |
typedef void (*makeAtype_TD) ( int* unique_ident, |
| 12 |
+ |
int* isLJ, |
| 13 |
+ |
int* isSticky, |
| 14 |
+ |
int* isDipole, |
| 15 |
+ |
int* isGB, |
| 16 |
+ |
int* isEAM, |
| 17 |
+ |
int* isCharge, |
| 18 |
+ |
double* lj_epslon, |
| 19 |
+ |
double* lj_sigma, |
| 20 |
+ |
double* charge, |
| 21 |
+ |
double* dipole_moment, |
| 22 |
+ |
int* status ); |
| 23 |
|
|
| 24 |
+ |
typedef void (*newEAMtype_TD)( double* lattice_constant, |
| 25 |
+ |
int* eam_nrho, |
| 26 |
+ |
double* eam_drho, |
| 27 |
+ |
int* eam_nr, |
| 28 |
+ |
double* eam_dr, |
| 29 |
+ |
double* eam_rcut, |
| 30 |
+ |
double* eam_rvals, |
| 31 |
+ |
double* eam_rhovals, |
| 32 |
+ |
double* eam_Frhovals, |
| 33 |
+ |
int* eam_ident, |
| 34 |
+ |
int* status ); |
| 35 |
+ |
|
| 36 |
+ |
typedef void (*initFortranFF_TD)( int* LJ_mix_policy, |
| 37 |
+ |
int* useReactionField, |
| 38 |
+ |
int *isError ); |
| 39 |
+ |
|
| 40 |
+ |
typedef void (*doForceLoop_TD)( double* positionArray, |
| 41 |
+ |
double* rcArray, |
| 42 |
+ |
double* RotationMatrixArray, |
| 43 |
+ |
double* unitVectorArray_l, |
| 44 |
+ |
double* forceArray, |
| 45 |
+ |
double *torqueArray, |
| 46 |
+ |
double* StressTensor, |
| 47 |
+ |
double* potentialEnergy, |
| 48 |
+ |
short int* doPotentialCalc, |
| 49 |
+ |
short int* doStressCalc, |
| 50 |
+ |
int* isError ); |
| 51 |
+ |
|
| 52 |
+ |
typedef void (*set_sticky_params_TD)( double* sticky_w0, |
| 53 |
+ |
double* sticky_v0, |
| 54 |
+ |
double* sticky_v0p, |
| 55 |
+ |
double* sticky_rl, |
| 56 |
+ |
double* sticky_ru, |
| 57 |
+ |
double* sticky_rlp, |
| 58 |
+ |
double* sticky_rup ); |
| 59 |
|
|
| 60 |
< |
#define initFortranFFList ( int* LJ_mix_policy, int* useReactionField, int *isError ) |
| 60 |
> |
typedef void (*set_gb_pair_params_TD)( double* GB_sigma, |
| 61 |
> |
double* GB_l2b_ratio, |
| 62 |
> |
double* GB_eps, |
| 63 |
> |
double* GB_eps_ratio, |
| 64 |
> |
double* GB_mu, |
| 65 |
> |
double* GB_nu ); |
| 66 |
|
|
| 67 |
< |
#define doForceLoopList ( double* positionArray, double* RotationMatrixArray, double* unitVectorArray_l, double* forceArray, double *torqueArray, double* StressTensor, double* potentialEnergy, short int* doPotentialCalc, short int* doStressCalc, int* isError ) |
| 67 |
> |
typedef void (*setFortranSim_TD)( simtype* the_Info, |
| 68 |
> |
int* nGlobal, |
| 69 |
> |
int* nLocal, |
| 70 |
> |
int* identArray, |
| 71 |
> |
int* nLocalExcludes, |
| 72 |
> |
int* excludesLocalArray, |
| 73 |
> |
int* nGlobalExcludes, |
| 74 |
> |
int* excludesGlobalArray, |
| 75 |
> |
int* molMembershipArray, |
| 76 |
> |
double* mfact, |
| 77 |
> |
int* ngroup, |
| 78 |
> |
int* groupList, |
| 79 |
> |
int* groupStart, |
| 80 |
> |
int* isError ); |
| 81 |
|
|
| 82 |
< |
#define set_sticky_params_List ( double* sticky_w0, double* sticky_v0 ) |
| 82 |
> |
typedef void (*setFortranBox_TD) ( double *Hmat, |
| 83 |
> |
double *HmatI, |
| 84 |
> |
int* orthoRhombic ); |
| 85 |
|
|
| 86 |
< |
#define set_gb_pair_params_List ( double* GB_sigma, double* GB_l2b_ratio, double* GB_eps, double* GB_eps_ratio, double* GB_mu, double* GB_nu ) |
| 86 |
> |
typedef void (*notifyFortranCutOff_TD) ( double *rCut, |
| 87 |
> |
double *rList, |
| 88 |
> |
double *ecr, |
| 89 |
> |
double *est ); |
| 90 |
> |
} |
| 91 |
|
|
| 21 |
– |
#define setFortranSimList ( simtype* the_Info, int* nGlobal, int* nLocal, int* identArray, int* nLocalExcludes, int* excludesLocalArray, int* nGloabalsExcludes, int* excludesGlobalArray, int* molMembershipArray, int* isError ) |
| 92 |
|
|
| 93 |
< |
#define setFortranBoxList ( double *Hmat, double *HmatI, int* orthoRhombic ) |
| 24 |
< |
// BoxArray is a length 3 array |
| 93 |
> |
#ifdef IS_MPI |
| 94 |
|
|
| 95 |
< |
#define notifyFortranCutOffList ( double *rCut, double *rList, double *ecr, double *est ) |
| 95 |
> |
#include "mpiComponentPlan.h" |
| 96 |
|
|
| 28 |
– |
#ifdef IS_MPI |
| 97 |
|
|
| 30 |
– |
#define setFortranMPIlist (mpiSimData* the_mpiPlug, int *nLocal, int* globalIndexArray, int* isError ) |
| 98 |
|
|
| 99 |
+ |
extern "C" { |
| 100 |
+ |
|
| 101 |
+ |
typedef void (*setFortranMPI_TD)( mpiSimData* the_mpiPlug, |
| 102 |
+ |
int *nLocal, |
| 103 |
+ |
int* globalIndexArray, |
| 104 |
+ |
int* isError ); |
| 105 |
+ |
|
| 106 |
+ |
} |
| 107 |
+ |
|
| 108 |
|
#endif // is_mpi |
| 109 |
|
|
| 110 |
|
#endif // frotranWrapDefines.hpp |