[FLASH-USERS] changing maxblocks
Slavin, Jonathan
jslavin at cfa.harvard.edu
Fri Aug 28 12:02:19 EDT 2015
The issue is that "just running setup again" means, I think, that you start
over with some pre-defined simulation and lose all the bits you changed.
Or maybe I'm misunderstanding how setup works. Isn't the reason for having
MAXBLOCKS in a header file that it can be taken from there for all the
files that use it? If not, it would be multiply defined, which would be
bad practice.
Jon
On Fri, Aug 28, 2015 at 11:55 AM, Sean Couch <smc at flash.uchicago.edu> wrote:
> Argh. Don’t do that. Flash.h should not be edited as it may cause
> unexpected side effects. AAAND, you will have to recompile the code anyway
> so that the new value of MAXBLOCKS is used. Since MAXBLOCKS appears in a
> ton of code, the cost of just running setup again is not that much more.
>
> Sean
>
> On Aug 28, 2015, at 11:50 AM, Slavin, Jonathan <jslavin at cfa.harvard.edu>
> wrote:
>
> Hi Nasiri,
>
> I wondered about that. I saw that it was set there, but wondered if doing
> that would cause some other problems. In the User's Guide it says "The
> Flash.h file is written by the setup script and should not be modified by
> the user." I don't know why that should be.
>
> Jon
>
> On Fri, Aug 28, 2015 at 11:43 AM, Nasiri, Farshad <fnasiri at email.gwu.edu>
> wrote:
>
>> You can modify that in Flash.h.
>>
>>
>> On Friday, August 28, 2015, Slavin, Jonathan <jslavin at cfa.harvard.edu>
>> wrote:
>>
>>> Hi,
>>>
>>> I'm pretty new to using FLASH. I've run some simulations that started
>>> with the sedov setup, though I've modified the Simulation_initBlock.F90 and
>>> a few other files. I ran into, what appears to be, a common problem, which
>>> is an MPI_Abort caused by a PARAMESH ERROR with the message (in amr.log): New
>>> block location exceeds MAXBLOCKS limit
>>> Suggestion: increase MAXBLOCKS or modify refinement criteria.
>>>
>>> My question is, if I just want to increase MAXBLOCKS, can I do that
>>> without running setup again? If so, how? I'll note that I've been using
>>> flmake, which allows for use of a different directory other than "object".
>>> Thanks in advance for any help.
>>>
>>> Regards,
>>> Jon
>>>
>>> --
>>> ________________________________________________________
>>> Jonathan D. Slavin Harvard-Smithsonian CfA
>>> jslavin at cfa.harvard.edu 60 Garden Street, MS 83
>>> phone: (617) 496-7981 Cambridge, MA 02138-1516
>>> cell: (781) 363-0035 USA
>>> ________________________________________________________
>>>
>>>
>
>
> --
> ________________________________________________________
> Jonathan D. Slavin Harvard-Smithsonian CfA
> jslavin at cfa.harvard.edu 60 Garden Street, MS 83
> phone: (617) 496-7981 Cambridge, MA 02138-1516
> cell: (781) 363-0035 USA
> ________________________________________________________
>
>
>
--
________________________________________________________
Jonathan D. Slavin Harvard-Smithsonian CfA
jslavin at cfa.harvard.edu 60 Garden Street, MS 83
phone: (617) 496-7981 Cambridge, MA 02138-1516
cell: (781) 363-0035 USA
________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20150828/a0a0d77e/attachment-0001.htm>
More information about the flash-users
mailing list