Skip to content

Commit

Permalink
fixed formatting to match project
Browse files Browse the repository at this point in the history
  • Loading branch information
zeniheisser committed Dec 5, 2024
1 parent 3f08dc4 commit bc74e37
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,9 @@ namespace mg5amcCpu
auto fileExists = []( std::string& fileName )
{ struct stat buffer; return stat( fileName.c_str(), &buffer ) == 0; };
size_t paramCardCheck = 2; // ZW: check for paramCard up to 2 directories up
for( size_t k = 0 ; k < paramCardCheck ; ++k )
for( size_t k = 0; k < paramCardCheck; ++k )
{
if( fileExists( paramCard ) ) break; // bypass std::filesystem #803
if( fileExists( paramCard ) ) break; // bypass std::filesystem #803
paramCard = "../" + paramCard;
}
process.initProc( paramCard );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ namespace mg5amcGpu
struct GpuRuntime final
{
GpuRuntime( const bool debug = false ) // ZW: default debug to false
: m_debug( debug ) { setUp( m_debug ); }
: m_debug( debug )
{
setUp( m_debug );
}
~GpuRuntime() { tearDown( m_debug ); }
GpuRuntime( const GpuRuntime& ) = delete;
GpuRuntime( GpuRuntime&& ) = delete;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ extern "C"
using namespace mg5amcCpu;
#endif

using FORTRANFPTYPE = double;
using FORTRANFPTYPE = double;

void fbridgecreate_( CppObjectInFortran** ppbridge, const int* pnevtF, const int* pnparF, const int* pnp4F );
void fbridgecreate_( CppObjectInFortran** ppbridge, const int* pnevtF, const int* pnparF, const int* pnp4F );

void fbridgedelete_( CppObjectInFortran** ppbridge );
void fbridgedelete_( CppObjectInFortran** ppbridge );

void fbridgesequence_( CppObjectInFortran** ppbridge,
void fbridgesequence_( CppObjectInFortran** ppbridge,
const FORTRANFPTYPE* momenta,
const FORTRANFPTYPE* gs,
const FORTRANFPTYPE* rndhel,
Expand All @@ -34,7 +34,7 @@ extern "C"
int* selcol,
const bool* pgoodHelOnly );

void fbridgesequence_nomultichannel_( CppObjectInFortran** ppbridge,
void fbridgesequence_nomultichannel_( CppObjectInFortran** ppbridge,
const FORTRANFPTYPE* momenta,
const FORTRANFPTYPE* gs,
const FORTRANFPTYPE* rndhel,
Expand All @@ -44,9 +44,9 @@ extern "C"
int* selcol,
const bool* pgoodHelOnly );

void fbridgegetngoodhel_( CppObjectInFortran** ppbridge,
void fbridgegetngoodhel_( CppObjectInFortran** ppbridge,
unsigned int* pngoodhel,
unsigned int* pntothel );

}
#endif // _FBRIDGE_H_
#endif // _FBRIDGE_H_

0 comments on commit bc74e37

Please sign in to comment.