closeFile Module Subroutine

module subroutine closeFile(this, mpiCont, saveFile, filepath)

Closes currently open json file. If saveFile is true, saves the file being worked on before closing. The default filepath here is "./config.json".

Arguments

Type IntentOptional Attributes Name
class(JSONController), intent(inout) :: this
type(MPIController), intent(inout) :: mpiCont

MPIController object to be used by the JSONController for communication

logical, intent(in), optional :: saveFile

True if the file should be saved before closing

character(len=*), intent(in), optional :: filepath

Non-default filepath for saving