Skip to content

Commit

Permalink
[shared] progress towards a better fortran-c interface (madgraph5#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
valassi committed Feb 3, 2022
1 parent eef06f7 commit c1b8a08
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions epochX/cudacpp/ee_mumu/SubProcesses/fbridge.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ extern "C"
* This is a C symbol that should be called from the Fortran code (in auto_dsig1.f).
*
* @param ppbridge the pointer to the Bridge pointer (the Bridge pointer is handled in Fortran as an INTEGER*8 variable)
* @param nevtF the number of events in the Fortran arrays
* @param nparF the number of external particles in the Fortran arrays [KEPT FOR SANITY CHECKS ONLY! remove it?]
* @param np4F the number of momenta components (usually: 4) in the Fortran arrays [KEPT FOR SANITY CHECKS ONLY! remove it?]
* @param nevtF the pointer to the number of events in the Fortran arrays
* @param nparF the pointer to the number of external particles in the Fortran arrays (KEPT FOR SANITY CHECKS ONLY: remove it?)
* @param np4F the pointer to the number of momenta components, usually 4, in the Fortran arrays (KEPT FOR SANITY CHECKS ONLY: remove it?)
*/
void fbridgecreate_( Bridge<FORTRANFPTYPE>** ppbridge, const int nevtF, const int nparF, const int np4F )
void fbridgecreate_( Bridge<FORTRANFPTYPE>** ppbridge, const int* pnevtF, const int* pnparF, const int* pnp4F )
{
*ppbridge = new Bridge<FORTRANFPTYPE>( nevtF, nparF, np4F );
*ppbridge = new Bridge<FORTRANFPTYPE>( *pnevtF, *pnparF, *pnp4F );
}

/**
* Delete the Bridge.
* Delete a Bridge.
* This is a C symbol that should be called from the Fortran code (in auto_dsig1.f).
*
* @param ppbridge the pointer to the Bridge pointer (the Bridge pointer is handled in Fortran as an INTEGER*8 variable)
Expand All @@ -54,7 +54,7 @@ extern "C"
}

/**
* Execute the matrix-element calculation "sequence" via the Bridge on GPU/CUDA or CUDA/C++.
* Execute the matrix-element calculation "sequence" via a Bridge on GPU/CUDA or CUDA/C++.
* This is a C symbol that should be called from the Fortran code (in auto_dsig1.f).
*
* @param ppbridge the pointer to the Bridge pointer (the Bridge pointer is handled in Fortran as an INTEGER*8 variable)
Expand Down

0 comments on commit c1b8a08

Please # to comment.