Currently if the user supplies a porosity value of >1 to make_ice_column, it is passed to bulk_ice_density and a negative density is generated.
When SMRT is called to run, it throws an error because the imaginary part of the permittivity is negative.
This pull request generates an error within the bulk_ice_density function as soon as the density is recognised as negative. I've also changed the docs for make_ice_column to indicate that porosity should be 0-1 and not %.
I ran the test_make_medium.py script and all five tests were passed.
Currently if the user supplies a porosity value of >1 to make_ice_column, it is passed to bulk_ice_density and a negative density is generated.
When SMRT is called to run, it throws an error because the imaginary part of the permittivity is negative.
This pull request generates an error within the bulk_ice_density function as soon as the density is recognised as negative. I've also changed the docs for make_ice_column to indicate that porosity should be 0-1 and not %.
I ran the test_make_medium.py script and all five tests were passed.