Skip to content

Commit

Permalink
Add info to show libyt are generating particle data
Browse files Browse the repository at this point in the history
Because showing error when not finding particle data in dict is intimidating.
  • Loading branch information
cindytsai committed Nov 15, 2023
1 parent 79ed960 commit adf6513
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/yt_rma_particle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ int yt_rma_particle::prepare_data(long& gid) {
data_ptr = par_array.data_ptr;
to_free = false;
} else {
log_info("Trying to get particle data through user-defined function.\n");

// Generate particle data through get_par_attr function pointer, if we cannot find it in libyt.particle_data
void (*get_par_attr)(const int, const long*, const char*, const char*, yt_array*);
get_par_attr = LibytProcessControl::Get().particle_list[m_ParticleIndex].get_par_attr;
Expand Down

0 comments on commit adf6513

Please sign in to comment.