Message: Re: maximum size of GDML file Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: maximum size of GDML file 

Forum: Geometry
Re: Question maximum size of GDML file (Svetlana Shasharina)
Re: More Re: maximum size of GDML file (Gabriele Cosmo)
Date: 06 Sep, 2017
From: Svetlana Shasharina <Svetlana Shasharina>

Hi Gabriele,

Yes, I ran into this XeresC limit and recompiled it by adding the next 
prime number to the limits as follows:

diff -ruN xercesc-3.1.1 xercesc-3.1.1.new/
diff -ruN xercesc-3.1.1/src/xercesc/dom/impl/DOMNodeIDMap.cpp 
xercesc-3.1.1.new/src/xercesc/dom/impl/DOMNodeIDMap.cpp
--- xercesc-3.1.1/src/xercesc/dom/impl/DOMNodeIDMap.cpp 2008-07-19 
06:08:55.000000000 -0600
+++ xercesc-3.1.1.new/src/xercesc/dom/impl/DOMNodeIDMap.cpp 2017-09-05 
12:54:46.000000000 -0600
@@ -30,7 +30,7 @@
  XERCES_CPP_NAMESPACE_BEGIN


-static const XMLSize_t gPrimes[] = {997, 9973, 99991, 999983, 0 };  // 
To do - add a few more.
+static const XMLSize_t gPrimes[] = {997, 9973, 99991, 999983, 99999989, 
0 };  // To do - add a few more.

  static const float gMaxFill = 0.8f;   // The maximum fraction of the total
                                      // table entries to consume before 
exanding.

  Still could not validate the gdml.  I will try to add one more limit?

Thanks,

Sveta


On 9/6/17 8:58 AM, Gabriele Cosmo wrote:
> *** Discussion title: Geometry
>
> Hi Svetlana,
>
> there's in principle no limit.. provided you have enough memory (and
> computing power..). There may be however a limitation from the XercesC DOM
> parser on the size of the attributes table internally used for loading the structure,
> if your geometry has too many nodes.
>
> Cheers, Gabriele
>
> On Thu, 10 Aug 2017 13:09:01 GMT, Svetlana Shasharina wrote:
>> Hello, Is there a limit to a GDML file that I can use (provided that it
>> is smaller then my RAM)? The GDML that I am planning to use will be
>> created from CAD and can be quite large (the original STEP before
>> defeaturing is now 70MB.
>>
>> Thank you, Sveta
> -------------------------------------------------------------
> Visit this GEANT4 at hypernews.slac.stanford.edu message (to reply or unsubscribe) at:
> http://hypernews.slac.stanford.edu/HyperNews/geant4/get/geometry/1544/1.html
>

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 More: Re: maximum size of GDML file   (Gabriele Cosmo - 07 Sep, 2017)
 Add Message Add Message
to: "Re: maximum size of GDML file"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]