AMReX-Astro / Microphysics

common astrophysical microphysics routines with interfaces for the different AMReX codes
https://amrex-astro.github.io/Microphysics
Other
34 stars 33 forks source link

subch network #152

Closed sandshrews closed 5 years ago

sandshrews commented 6 years ago

When trying to run unit_test/burn_cell/ for the inputs_burn_subch.VODE file using the subch network, throws the error:

At line 122 of file ../../networks/subch/actual_network.F90 Fortran runtime error: Attempting to allocate already allocated variable 'aion'

This was not an issue with the URCA Simple network.

zingale commented 6 years ago

The issue is that for subch, actual_burner_init() calls actual_network_init() while for URCA-simple, it does not.

So for subch, we are doing that init twice.

@dwillcox do you have thoughts on where it should be?

zingale commented 6 years ago

actually, this seems to be a new thing in the pynucastro template. It looks like the most nets don't call actual_network_init from actual_burner. I'm going to change them, and we should modify pynucastro

zingale commented 6 years ago

this should be fixed now