# GDML - CSG Volume update

**URL:** <https://geant4-forum.web.cern.ch/t/gdml-csg-volume-update/12806>\
**Category:** Geometry, Fields and Transportation\
**Created:** [August 17, 2024, 6:54pm UTC](https://geant4-forum.web.cern.ch/t/gdml-csg-volume-update/12806 "2024-08-17T18:54:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_Jonson](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/jason_jonson/32/197_2.png) [@Jason\_Jonson](https://geant4-forum.web.cern.ch/u/Jason_Jonson)\
**Post date:** [August 17, 2024, 6:54pm UTC](https://geant4-forum.web.cern.ch/t/gdml-csg-volume-update/12806/1 "2024-08-17T18:54:31Z")

</div>

I am getting the following error when I attempt to modify a csg volume that I am placing in a gdml geometry and its associated world volume. I can change the number of repetitions at the start in batch mode, however the following results if in G4\_idle I attempt to change the number of repetitions of geometry, with the relative command also running

```c++
G4RunManager::GetRunManager()->ReinitializeGeometry();

```

I have added the following in DetectorConstruction to no avail  
prior to the import of the gdml geometry.

```c++
  // Cleanup old geometry
  G4GeometryManager::GetInstance()->OpenGeometry();
  G4PhysicalVolumeStore::GetInstance()->Clean();
  G4LogicalVolumeStore::GetInstance()->Clean();
  G4SolidStore::GetInstance()->Clean();

```

```xml
-------- EEEE ------- G4Exception-START -------- EEEE -------
*** G4Exception : InvalidExpression
      issued by : G4GDMLEvaluator::DefineConstant()
Redefinition of constant or variable: HALFPI
***Fatal Exception*** core dump ***
 **** Track information is not available at this moment
 **** Step information is not available at this moment

-------- EEEE -------- G4Exception-END --------- EEEE -------

```

As a small comment, I feel like the G4VPVParameterisation could be a little more user friendly. I struggled getting it to reproduce the function of a simple for loop with touchables using its much more complex setup.

I have this error with the G4PVParameterisation

```auto
-------- EEEE ------- G4Exception-START -------- EEEE -------
*** G4Exception : GeomVol0002
      issued by : G4PVReplica::G4PVReplica()
Replica or parameterised volume must be the only daughter !
     Mother logical volume: worldVOL
     Replicated volume: ParameterisedSample
     Existing 'sister': PV-ConcreteBase
***Fatal Exception*** core dump ***
 **** Track information is not available at this moment
 **** Step information is not available at this moment

-------- EEEE -------- G4Exception-END --------- EEEE -------

***G4Exception: Aborting execution***

```

Thank you for your help!  
\_Geant4 Version:\_11.2  
\_Operating System:\_Deb12  
\_Compiler/Version:\_gcc12
