| 251 | } |
| 252 | |
| 253 | Array<MemoryUsage> GridFunction :: GetMemoryUsage () const |
| 254 | { |
| 255 | //if (&const_cast<GridFunction&> (*this).GetVector()) |
| 256 | if (this->GetVectorPtr()) |
| 257 | { |
| 258 | // int olds = mu.Size(); |
| 259 | //const_cast<GridFunction&> (*this).GetVector().MemoryUsage (mu); |
| 260 | auto mu = this->GetVector().GetMemoryUsage (); |
| 261 | for (int i = 0; i < mu.Size(); i++) |
| 262 | mu[i].AddName (string(" gf ")+GetName()); |
| 263 | return mu; |
| 264 | } |
| 265 | return Array<MemoryUsage>(); |
| 266 | } |
| 267 | |
| 268 | |
| 269 |
nothing calls this directly
no test coverage detected