[ET Trac] #2781: Fix bug in debug mode with presync_mode = "off"

Samuel Cupp trac-noreply at einsteintoolkit.org
Thu Feb 29 15:01:21 CST 2024


#2781: Fix bug in debug mode with presync_mode = "off"

 Reporter: Samuel Cupp
   Status: new
Milestone: ET_2024_05
  Version: 
     Type: bug
 Priority: major
Component: Cactus

Currently, `CCTK_HasAccess` only checks access if `presync_mode` is set to `presync_only`. However, with debug on \(`CCTK_DEBUG` is defined\), it instead always checks access.

‌

The first part of this code section asserts that the function has the attribute RDWR:

```
  assert(current_function->RDWR);
```

This is incompatible with the form of `CCTKi_CreateRDWRData`, which immediately returns if this parameter is set to `off`, meaning that this attribute is never created. As such, `presync_mode="off"` cannot run in debug mode, which is especially unacceptable for the default parameter setting. If presync is completely off, then it should never enter this section of the code.

--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2781/fix-bug-in-debug-mode-with-presync_mode
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.einsteintoolkit.org/pipermail/trac/attachments/20240229/5da86947/attachment-0001.htm>


More information about the Trac mailing list