Closed tkreynolds closed 8 years ago
Rebase develop and put new changes on top.
I've never been happy with passing around pointers in place of properly dimensioned arrays or vectors; there's no way to ensure proper size for either filling or referencing. Could you take a look at the alternate branch (G4CMP-12) where the Gradient() function returns a G4ThreeVector instead of a G4double*. Also, that alternate branch also has all of the Geant4-specific "[4]" position+time arguments reduced to "[3]" positions.
Tyler is already on it.
On 09/06/2016 02:27 PM, Michael Kelsey wrote:
I've never been happy with passing around pointers in place of properly dimensioned arrays or vectors; there's no way to ensure proper size for either filling or referencing. Could you take a look at the alternate branch (G4CMP-12) where the Gradient() function returns a G4ThreeVector instead of a G4double*. Also, that alternate branch also has all of the Geant4-specific "[4]" position+time arguments reduced to "[3]" positions.
The GetPotential and GetField functions have been moved out of G4CMPTriLinearInterp and into G4CMPMeshElectricField.