Open JonathanGorard opened 8 months ago
In general, let us avoid using CamelCase for naming.
In general, let us avoid using CamelCase for naming.
Would underscores be preferable (e.g. "sech_sq" and "Ti_over_Te")?
Thanks for this effort. Here are some things that we've (inconsistently) tried using in the past:
Thanks Mana! That's super useful to know - I like the general principle of the format being something like "quantity_specifier". I will try to enforce that wherever it seems sensible to do so. I feel as though "_mul2", "_div2", etc. are somewhat clearer suffixes than "D2" and "R2", and squaring seems like a sufficiently common operation that "_sq" is not unreasonable in such cases. I think that, given these rules, we can mostly (if not entirely) remove the instances of CamelCase that I've seen in g0 so far.
[Also, for what it's worth, I've also noticed discrepancies between things like "momzi" and "izmom" (for ion z-momentum). I'm currently canonicalizing to the first form, but, as usual, let me know if you have thoughts.]
Alright, so I’m currently going through g0 and trying to enforce some consistency in how things are named and structured (in the hope of eventually being able to produce a reasonably canonical guide/glossary to the code). I appreciate that this seems utterly tedious, and is not likely to make me many friends, but it also seems potentially somewhat useful. However, everyone here knows the code much better than me, so your opinions regarding these things are also crucial. I’m going to keep a thread here of (apparent?) inconsistencies that I find, and what canonical form I’m choosing, but if anyone has other views (or feels that I’ve fundantally misunderstood something, which is very likely), then please do let me know! From my work so far on the moment and Vlasov apps:
I'll keep this updated as I go!