Skip to content

Allow for no particles with PARTICLES set; Adiabatic Expansion ICs#10

Open
brantr wants to merge 1 commit intobvillasen:cosmologyfrom
brantr:cosmology
Open

Allow for no particles with PARTICLES set; Adiabatic Expansion ICs#10
brantr wants to merge 1 commit intobvillasen:cosmologyfrom
brantr:cosmology

Conversation

@brantr
Copy link
Copy Markdown

@brantr brantr commented Mar 3, 2026

Some of the GPU routines for particles expect that each GPU has local particles present. These edits prevent GPU errors from occurring when a GPU does not have local particles. This is required for simulations that use COSMOLOGY & PARTICLES but do not have particles.

I have also added an Adiabatic Expansion ICs routine that initializes a simple adiabatic expansion test based on the Zeldovich pancake ICs. When the velocities are set to zero in this set of ICs, the uniform gas distribution will just expand (constant comoving density) and cool (T decreases with (1+z)^2/(1+z_init)^2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant