Page 1 of 1

lat maximum limit

Posted: Fri Jun 06, 2014 11:53 am
by xixipang
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!

Re: lat maximum limit

Posted: Sun Jun 08, 2014 12:07 pm
by Jaakko Leppänen
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).

Re: lat maximum limit

Posted: Tue Jun 10, 2014 3:25 pm
by xixipang
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.

Re: lat maximum limit

Posted: Tue Jun 10, 2014 3:58 pm
by Jaakko Leppänen
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.