Possible use of unallocated `itright`

Issue #243 new
David Dickinson created an issue

The `itright` array is only allocated and initialised inside init_connected_bc so is only set when linked boundary conditions are being used. Despite this, it is used in fields_local and fields_implicit without an explicit guard on linked boundary conditions. It probably hasn’t caused problems as it is guarded in other ways (such as only being used in ncells > 1 etc.) but it might be safer to ensure that it is initialised in all cases.

Comments (0)

  1. Log in to comment