[ET Trac] #2526: McLachlan has incorrect READ declarations for presync.

Roland Haas trac-noreply at einsteintoolkit.org
Wed May 12 10:02:32 CDT 2021


#2526: McLachlan has incorrect READ declarations for presync.

 Reporter: Peter Diener
   Status: new
Milestone: ET_2021_05
  Version: development version
     Type: bug
 Priority: major
Component: EinsteinToolkit thorn

Comment (by Roland Haas):

The `READS` generation is somewhat related to  using Tmunu in expression as of commit hash [e69182c](https://github.com/ianhinder/Kranc/commits/e69182cf0e78e4120d6d3e518883037f9fde9eb5) "generate READS statement for stress\_energy\_state if needed" of [Kranc](https://github.com/ianhinder/Kranc) which is in ET\_2020\_05\_v0.

While that commit does _not_ produce `READS: TmunuBase:eTxx` it queries the `RequireGroups` variable for their presence and that variable is the one used to generate the `READS` and itself generates a `READS: TmunuBase::stress_energy_state`. Meaning: if there is a `READS: TmunuBase::stress_energy_state` then `RequireGroups` contained TmunuBase variables and `READS` for them will be generated. This seems to be what happens for ML\_BSSN\_ADMBaseEverywhere.

That commit \(once one ignores whitespace changes and putting code in a `Module`\) adds:

```mathematica
(* must match list in CodeGenCalculation.m *)
ignoreGroups = {"TmunuBase::eTtt", "TmunuBase::eTxx", "TmunuBase::eTxy",
                "TmunuBase::eTxz", "TmunuBase::eTyy", "TmunuBase::eTyz",
                "TmunuBase::eTzz", "TmunuBase::eTtx", "TmunuBase::eTty",
                "TmunuBase::eTtz"};
If[ContainsAny[lookupDefault[spec, RequiredGroups, {}], ignoreGroups],
   "READS: " <> "TmunuBase::stress_energy_state" <> "\n",
   ""],
```

‌

--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2526/mclachlan-has-incorrect-read-declarations
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.einsteintoolkit.org/pipermail/trac/attachments/20210512/38ac985c/attachment.html 


More information about the Trac mailing list