Message: Urgent help needed!!! Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Urgent help needed!!! 

Keywords: brachytherapy memeory error
Forum: Analysis
Date: 13 Dec, 2006
From: <jgzm6@umr.edu>

Dear G4s:
I encoutered the same problem as 136 in runnng the my modified brachytherapy 
examples. I am using the same jaida/jas3 as question 136 users. The events 
from 1000 to 500000 can be finished gracefully and I can see 
the brachytheray.aida file, but when I run 800000 
the code stoped with following memory error information.

..................................
..............................
### Run 0 start.
The iontuple is non-zero
number of events = 800000
output 115(1,1,5)
Exception in thread "main" java.lang.OutOfMemoryError
Out of memory while allocation: k
Exception in thread "main" java.lang.OutOfMemoryError
Exception in thread "main" java.lang.OutOfMemoryError
Out of memory while allocation: energy
Exception in thread "main" java.lang.OutOfMemoryError
Exception in thread "main" java.lang.OutOfMemoryError
Out of memory while allocation: k
Exception in thread "main" java.lang.OutOfMemoryError
............................
.......................

I just add the BrachyMatrix as following (I think the 
problem may come form here after output 115(1,1,5):

..........................
void BrachyMatrix::TotalEnergyDeposit()
{
  // Store the information of the matrix in a ntuple and in 
  // a 1D Histogram

  G4int k;
  G4int j;
  G4int i;
  
  if (matrix)
    {  
	for(G4int l = 0; l < numberVoxelZ; l++) 
	  {
	    k = l;
	    
	    for(G4int m = 0; m < numberVoxelY; m++) 
	      { 
		j = m * numberVoxelZ + k; 
		
		for(G4int n = 0; n <  numberVoxelX; n++)
		  {
		    i =  n* numberVoxelZ * numberVoxelY + j;
		    if(matrix[i] != 0)
		      {	
					
#ifdef G4ANALYSIS_USE 	
	BrachyAnalysisManager* analysis = BrachyAnalysisManager::getInstance();
        analysis -> FillEnergyDeposit(n, m, k, matrix[i]);
	
 // G4cout<<"output after FillEnergy"<<G4ThreeVector(n,k,matrix[i])
 //                                    <<G4endl;

			//	 analysis -> BraggPeak(n, matrix[i]);
#endif
		      }
		  }       
	      }
	  }
    }
}
................................................

thank you so much!

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

1 None: RE: Urgent help needed!!!   (tony_johnson@slac.stanford.edu - 13 Dec, 2006)
(_ None: RE: Urgent help needed!!!   (jgzm6@umr.edu - 13 Dec, 2006)
(_ None: RE: Urgent help needed!!!   (jgzm6@umr.edu - 14 Dec, 2006)
 Add Message Add Message
to: "Urgent help needed!!!"

 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 ]