The program works fine minor changes

I am trying to have my code to work with anisotroic behaivour