AMReX-Astro / AMReX-Astro/Castro

revisit problem_post hooks and document

Open
#113 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

clean-up documentation :book:
Dominant language
C++
Stars
340
Forks
105
Avg merge
3d 8h
Merged PRs (30d)
8

Description

Currently there are 4 ifdefs for the problem post hooks:

  • DO_PROBLEM_POST_TIMESTEP
  • DO_PROBLEM_POST_RESTART
  • DO_PROBLEM_POST_INIT
  • DO_PROBLEM_POST_SIMULATION

Only the last of these is controlled by a make option (USE_POST_SIM).

Usually the problem-specific implementation of these is in Prob.cpp.

We should revisit whether we really want these ifdef-ed out or if we just have simple stubs always defined. For the latter, we might need to update some problem setups.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the four hook macros and the USE_POST_SIM make option, then inspect the problem-specific implementations in Prob.cpp and the affected problem setups. The work is done when the hook policy is decided, the relevant setup changes are made if needed, and the behavior is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system, hpc
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.