| 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 | > | double* lj_epslon, | 
| 18 | > | double* lj_sigma, | 
| 19 | > | double* dipole_moment, | 
| 20 | > | int* status ); | 
| 21 | > |  | 
| 22 | > | typedef void (*newEAMtype_TD)( double* lattice_constant, | 
| 23 | > | int* eam_nrho, | 
| 24 | > | double* eam_drho, | 
| 25 | > | int* eam_nr, | 
| 26 | > | double* eam_dr, | 
| 27 | > | double* eam_rcut, | 
| 28 | > | double* eam_rvals, | 
| 29 | > | double* eam_rhovals, | 
| 30 | > | double* eam_Frhovals, | 
| 31 | > | int* eam_ident, | 
| 32 | > | int* status ); | 
| 33 | > |  | 
| 34 | > | typedef void (*initFortranFF_TD)( int* LJ_mix_policy, | 
| 35 | > | int* useReactionField, | 
| 36 | > | int *isError ); | 
| 37 | > |  | 
| 38 | > | typedef void (*doForceLoop_TD)( double* positionArray, | 
| 39 | > | double* RotationMatrixArray, | 
| 40 | > | double* unitVectorArray_l, | 
| 41 | > | double* forceArray, | 
| 42 | > | double *torqueArray, | 
| 43 | > | double* StressTensor, | 
| 44 | > | double* potentialEnergy, | 
| 45 | > | short int* doPotentialCalc, | 
| 46 | > | short int* doStressCalc, | 
| 47 | > | int* isError ); | 
| 48 | > |  | 
| 49 | > | typedef void (*set_sticky_params_TD)( double* sticky_w0, | 
| 50 | > | double* sticky_v0, | 
| 51 | > | double* sticky_v0p, | 
| 52 | > | double* sticky_rl, | 
| 53 | > | double* sticky_ru, | 
| 54 | > | double* sticky_rlp, | 
| 55 | > | double* sticky_rup ); | 
| 56 |  |  | 
| 57 | + | typedef void (*set_gb_pair_params_TD)( double* GB_sigma, | 
| 58 | + | double* GB_l2b_ratio, | 
| 59 | + | double* GB_eps, | 
| 60 | + | double* GB_eps_ratio, | 
| 61 | + | double* GB_mu, | 
| 62 | + | double* GB_nu ); | 
| 63 |  |  | 
| 64 | + | typedef void (*setFortranSim_TD)( simtype* the_Info, | 
| 65 | + | int* nGlobal, | 
| 66 | + | int* nLocal, | 
| 67 | + | int* identArray, | 
| 68 | + | int* nLocalExcludes, | 
| 69 | + | int* excludesLocalArray, | 
| 70 | + | int* nGloabalsExcludes, | 
| 71 | + | int* excludesGlobalArray, | 
| 72 | + | int* molMembershipArray, | 
| 73 | + | int* isError ); | 
| 74 |  |  | 
| 75 | < | #define initFortranFFList ( int* LJ_mix_policy, int* useReactionField, int *isError ) | 
| 75 | > | typedef void (*setFortranBox_TD) ( double *Hmat, | 
| 76 | > | double *HmatI, | 
| 77 | > | int* orthoRhombic ); | 
| 78 |  |  | 
| 79 | < | #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 ) | 
| 79 | > | typedef void (*notifyFortranCutOff_TD) ( double *rCut, | 
| 80 | > | double *rList, | 
| 81 | > | double *ecr, | 
| 82 | > | double *est ); | 
| 83 | > | } | 
| 84 |  |  | 
| 17 | – | #define set_sticky_params_List ( double* sticky_w0, double* sticky_v0, double* sticky_v0p, double* sticky_rl, double* sticky_ru, double* sticky_rlp, double* sticky_rup ) | 
| 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 | > | #ifdef IS_MPI | 
| 87 |  |  | 
| 88 | < | #define setFortranSimList ( simtype* the_Info, int* nGlobal, int* nLocal, int* identArray, int* nLocalExcludes, int* excludesLocalArray, int* nGloabalsExcludes, int* excludesGlobalArray, int* molMembershipArray, int* isError ) | 
| 88 | > | #include "mpiComponentPlan.h" | 
| 89 |  |  | 
| 23 | – | #define setFortranBoxList ( double *Hmat, double *HmatI, int* orthoRhombic  ) | 
| 24 | – | // BoxArray is a length 3 array | 
| 90 |  |  | 
| 26 | – | #define notifyFortranCutOffList ( double *rCut, double *rList, double *ecr, double *est ) | 
| 91 |  |  | 
| 92 | < | #ifdef IS_MPI | 
| 92 | > | extern "C" { | 
| 93 | > |  | 
| 94 | > | typedef void (*setFortranMPI_TD)( mpiSimData* the_mpiPlug, | 
| 95 | > | int *nLocal, | 
| 96 | > | int* globalIndexArray, | 
| 97 | > | int* isError ); | 
| 98 |  |  | 
| 99 | < | #define setFortranMPIlist (mpiSimData* the_mpiPlug, int *nLocal, int* globalIndexArray, int* isError ) | 
| 99 | > | } | 
| 100 |  |  | 
| 101 |  | #endif // is_mpi | 
| 102 |  |  |