[J3] [EXTERNAL] Re: Why is += missing?
Clune, Thomas L. (GSFC-6101)
thomas.l.clune at nasa.gov
Wed Sep 1 14:28:42 UTC 2021
I’m pretty bad at nontrivial grep and completely foobar’d my earlier submission. So I’ve turned to my “grep guy” for help. Am now using:
$ rg -t fortran -P '^\s*([A-Za-z0-9_]+)\s*=\s*(?i)\1\s*\+'
This properly accounts for extra spaces, underscore characters and case insensitivity.
And for SLOC I’m now using `scc –no-gitignore | grep -i fortran`:
Now I can do the entire weather model in one fell swoop:
SLOC: 2046k
+= use cases: 13447
% 0.66
But there is considerable variability among layers:
Repository SLOC A = A+ % use
MAPL 105k 487 0.5
GMAO_Shared 198k 3314 1.7
FMS 76k 712 0.9
NCEP_Shared 33k 499 1.5
So not overwhelming, but certainly would not be a rarely used feature.
* Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20210901/e1bd94e5/attachment.htm>
More information about the J3
mailing list