pihnn.bc.reset_variables#
- pihnn.bc.reset_variables()#
For efficiency reasons, some variables are stored so that they are computed only once at every forward pass. In particular, Neumann boundary conditions employ first derivatives which are expensive to compute. Hence, this method is called to free computed derivatives at the end of the forward pass.