lat maximum limit

Report all good and bad behavior here
Post Reply
xixipang
Posts: 23
Joined: Mon Nov 04, 2013 12:37 pm
Security question 1: No
Security question 2: 92

lat maximum limit

Post by xixipang » Fri Jun 06, 2014 11:53 am

Hello *,

in my model there are more than 15000 fuel tubes just hexgonal placed there in the reactor and I have written an array in lat, and run the input file with serpent 1.1.19 and 2.1.19. But 2.1.19 will be terminated by a error message that lat has a limit of 10007, and mine has too many.

I would like to know how does this limit come from and is it possible to change this limit to another bigger value? Because I have tried to "grep "10007" *.c" in all the source codes but found nothing there.

Thanks!

User avatar
Jaakko Leppänen
Site Admin
Posts: 2387
Joined: Thu Mar 18, 2010 10:43 pm
Security question 2: 0
Location: Espoo, Finland
Contact:

Re: lat maximum limit

Post by Jaakko Leppänen » Sun Jun 08, 2014 12:07 pm

Try changing MAX_LATTICE_ITEMS on line 134 of header.h. Notice that this is a header file used by several subroutines, so you need to recompile the entire source code (make clean, then make).
- Jaakko

xixipang
Posts: 23
Joined: Mon Nov 04, 2013 12:37 pm
Security question 1: No
Security question 2: 92

Re: lat maximum limit

Post by xixipang » Tue Jun 10, 2014 3:25 pm

Jaakko Leppänen wrote:Try changing MAX_LATTICE_ITEMS on line 134 of header.h. Notice that this is a header file used by several subroutines, so you need to recompile the entire source code (make clean, then make).
Thanks for your answer. But after the modification of that line from 100*100 to 200*200 and new make, the error message comes to:

"Invalid value "124", must be between 1 and 100"

where my fuel pin array has a size of 124*159.

I found this error message from testparam.c, so there might be still some criteria to decide if this value fit for the program.

User avatar
Jaakko Leppänen
Site Admin
Posts: 2387
Joined: Thu Mar 18, 2010 10:43 pm
Security question 2: 0
Location: Espoo, Finland
Contact:

Re: lat maximum limit

Post by Jaakko Leppänen » Tue Jun 10, 2014 3:58 pm

You are right. You also need to change readinput.c from line 2593:

Code: Select all

		  nx = TestParam(pname, fname, line, params[j++], PTYPE_INT, 
				 1, 100);
		  
		  ny = TestParam(pname, fname, line, params[j++], PTYPE_INT, 
				 1, 100);
The last parameter is maximul value allowed.
- Jaakko

Post Reply