Fix creation of LocalView
LocalView should be created by calling the appropiate method of the global basis instead of calling the constructor directly.
LocalView should be created by calling the appropiate method of the global basis instead of calling the constructor directly.