Skip to content

Commit 129c53a

Browse files
Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 7d9905e commit 129c53a

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

sysrap/scuda.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ SUTIL_INLINE SUTIL_HOSTDEVICE unsigned long long min(unsigned long long a, unsig
105105
// Avoid conflict with C++20 std::lerp (and <math.h> bringing it into global)
106106

107107
#if defined(__cpp_lib_interpolate) // && !defined(__CUDA_ARCH__)
108-
using std::lerp; // make std::lerp visible to unqualified calls
108+
using std::lerp; // make std::lerp visible to unqualified calls
109109
#else
110110

111111
/** lerp */

u4/U4SolidMaker.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2151,9 +2151,10 @@ const G4VSolid* U4SolidMaker::BltLocalFastenerAcrylicConstruction(const char* na
21512151

21522152
G4Tubs* screw = new G4Tubs("screw",0,13*mm,50.*mm,0.0*deg,360.0*deg);
21532153

2154-
std::vector<G4ThreeVector> tlate(num_column, G4ThreeVector(0,0,0));
2154+
std::vector<G4ThreeVector> tlate(num_column, G4ThreeVector(0, 0, 0));
21552155

2156-
for(long i=0;i<num_column;i++) tlate[i] = G4ThreeVector(164.*cos(i*pi/4)*mm, 164.*sin(i*pi/4)*mm,-65.0*mm);
2156+
for (long i = 0; i < num_column; i++)
2157+
tlate[i] = G4ThreeVector(164. * cos(i * pi / 4) * mm, 164. * sin(i * pi / 4) * mm, -65.0 * mm);
21572158

21582159
G4VSolid* muni = screw ;
21592160
for(long i=1 ; i < num_column ; i++) muni = new G4UnionSolid( name, muni, screw, 0, tlate[i] ) ;

0 commit comments

Comments
 (0)