Writes a SWAP main file from the parameters, vectors, and tables stored in the rswap directory. Before you use this function, you need to have parsed a SWAP file
Details
This function currently is only intended for the SWAP main file, but will be expanded to handle the other SWAP input files over time.