CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Chimera Grid Tools: parameter size (https://www.cfd-online.com/Forums/main/76223-chimera-grid-tools-parameter-size.html)

Claudio May 18, 2010 10:54

Chimera Grid Tools: parameter size
 
I am trying to use the CGT with a database that contains a triangular mesh. When I use surgrd I get the message "Recompile using MEDGE > 102673". I have been looking everywhere in the source file but cannot find where the MEDGE parameter is set.

Does anybody know?

Thanks,
Claudio

www.appliedfluidtech.com

Claudio May 21, 2010 10:07

Problem solved
 
Apparently a hard-to-find error in one of the input threw the CGT off. When I caught that the message of recompiling with a bigger size disappear. Still I wonder where MEDGE is set since I could not find it in any source or include files using "grep".

agd May 21, 2010 11:55

MEDGE is computed in the tridat.F subroutine (found in the lib subdirectory). The only way to make it larger, as far as I can tell, is to change the calculation from MEDGE=4*NVERT to something bigger. If you do that you will probably want to check the gui/og.c routine also - it appears that some storage is computed there which may need to be consistent with the tridat.F value. Beyond this, I cannot find any other places where MEDGE takes on a value. (This is for versions 1.7 and 1.8). Makes me wonder if the variable used to be a parameter when the check was first put in, but somewhere someone decided to compute it and never changed the check condition.


All times are GMT -4. The time now is 03:08.