Replies: 4 comments 1 reply
-
Move more calls to C.host and C.device instead of the conserved array names. |
Beta Was this translation helpful? Give feedback.
-
On the subject of I/O, we should discuss potentially moving away from the 'for loop' over scalars Both for input (restarting) and output. |
Beta Was this translation helpful? Give feedback.
-
Locating any residual NSCALARS +:
|
Beta Was this translation helpful? Give feedback.
-
As an FYI. Some of the computations for the constrained transport electric fields do depend on field ordering and can't be easily changed to use grid enums. They could be transformed but it would probably require converting |
Beta Was this translation helpful? Give feedback.
-
I'm listing a number of possible TODOs related to grid_enum. In the short-term, I was focused on increasing the extensibility of SCALARS, but I also wanted to make sure that other things could be refactored along these lines piecemeal on an opt-in basis.
I sort this TODO list roughly in order of priority as I view it, placing low effort high value things closer the top.
Hydro variables has two parts because some are easy cases (0ncells, 1ncells, etc.) but some are a little fancier:
here is an example:
cholla/src/reconstruction/plmc_cuda.cu
Line 117 in d2a851d
In the above example, I think it'd be fine to replace the integers in:
cholla/src/reconstruction/plmc_cuda.cu
Line 27 in d2a851d
but every such "difficult" example is more difficult than a drop-in replace.
The two main constraints which I think are more trouble than they're worth to get around, are:
Aside from these main constraints, in the final form of grid_enum, it should be possible to re-order variables and add new ones to the list without as much thought/work as currently needed.
Beta Was this translation helpful? Give feedback.
All reactions