#1821: Carpet may call object methods with this == NULL -----------------------+---------------------------------------------------- Reporter: rhaas | Owner: eschnett Type: defect | Status: reopened Priority: optional | Milestone: Component: Carpet | Version: development version Resolution: | Keywords: -----------------------+----------------------------------------------------
Comment (by eschnett):
(1) I don't think that CarpetLib itself calls this method, so the changes to {{{ggf.cc}}} should not be necessary. (2) In {{{PeriodicCarpet}}}, you could use {{{src}}} instead of {{{fake_data_pointer()}}}. (3) The initialization of the static variable in {{{fake_data_pointer}}} is not thread-safe. This has actually become an issue when using Qthreads for parallelization.