Updating Functions
If the function M-file is modified using a text editor, click Clear Functions to ensure that the functions’ modifications are updated in the COMSOL Multiphysics model.
An alternative is to select the Clear functions automatically before solving check box.