Adding new surface types
Posted: Wed Apr 04, 2012 10:33 am
Adding new surface types can now (since update 2.1.4) be done with changes in a single subroutine "usersurf.c". The file consists of three parts that are explained by the comments in the source code. The idea is that the user can add new source routines in the code, and use them in the calculation with surface type of the form:
Once the routines have been developed and tested, I can copy the source code in the actual surface routines and assign a new name for the surface. This should significantly simplify the development of new surface types.
Code: Select all
surf <name> usr <param1> <param2> ...