Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

burn_cell_[metal,primordial]_chem redefines primary_species_* to be real

Aperta
#1,748 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@psharda ci sta già lavorando.

Dal 11/2/2025.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

In the top-level unit_test/_parameters, we have:

primary_species_1  string   ""
primary_species_2  string   ""
primary_species_3  string   ""

the intent of this is to set the name of the dominant species, and then create various mixtures of the composition including these species
using the setup_composition() function. This is used, e.g., by test_react to create a number of different compositions that are mapped onto one of the dimensions of the thermodynamic data cube we are testing with.

burn_cell_primordial_chem redefines these as real:

primary_species_1            real       1.0e0
primary_species_2            real       0.0e0
primary_species_3            real       0.0e0
primary_species_4            real       0.0e0
primary_species_5            real       0.0e0
...

this is a bad design.

I think that burn_cell_primordial_chem and burn_cell_metal_chem should instead use the parameters:

X1            real       1.0e0
X2            real       0.0e0
X3            real       0.0e0
X4            real       0.0e0
X5            real       0.0e0
X6            real       0.0e0
X7            real       0.0e0
...

that are already defined in unit_test/_parameters or use a different name altogether so it doesn't clash with the convention used by other problems.

Lingua principale
C++
Stelle
44
Fork
47
Merge medio
3g 7h
PR unite (30g)
10

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di AMReX-Astro/Microphysics

Tutte le issue di AMReX-Astro/Microphysics

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.