General Settings

In addition to the tests, we will here consider the general settings of the ASWNS code. These settings can be found in the file ASWNS.f90 and determine fundamental constants, but also the grid setup, or iteration details.

If you open ASWNS.f90, you will find the following parameters

And the following constants are used:

While it isn't to be expected that you need to change the overall constants, it might be worth changing some of the iteration parameters. For this purpose, let us consider running the example for the computation of the non-barotropic configuration and let's vary the following parameters

nr = 4000
nth = 15
mls = 10

which leads to a setup with mass of 2.151388177700834 Msun, but if we increase the resolution

nr = 15000
nth = 100
mls = 50

we get 2.1513872961030418Msun, but have to wait much longer. It might also be of interest for you to change the outer boundary location and see which effect this might have on the overall accuracy of the solution.

Creating the Doxygen Documentation

Another useful feature of ASWNS is the existence of a doxygen documentation. To create these, please first install doxygen, and then run it via

 sudo apt-get install doxygen
  doxygen

This creates HTML pages on which the functions are defined and also additional definitions of variables are given.