GRID_MESH/REGULAR_POLYGON_LGCP/REGPOLLGCP_OUTPUT DIRECTORY.

THIS DIRECTORY CONTAINS THE OUTPUTS FROM THE TWO SIMULATION STUDIES FOR THE REGULAR POLYGON LGCP EXAMPLE FOR THE GRID-MESH OPTIMISATION METHOD WHICH CONTAINS SEVERAL OUTPUTS FOR EACH SIMULATION STUDY AS THEY WERE SPREAD ACROSS MULTIPLE NODES AND THE THEIR PROCESSORS. ADDITIONALLY, DUE TO THE SINGLE OCCURRENCE OF A TIME ERROR FOR A PARTICULAR SIMULATION AND GRID-MESH COMBINATION WE HAVE AN ADDITIONAL OUTPUT WITH THE RUNS FOR A CERTAIN PROCESS COMPLETED WITHOUT THE ERROR BEING RE-RUN. THE OUTPUTS FOR EACH SIMULATION STUDY ARE COMBINED INTO A SINGLE OUTPUT WITH THE R SCRIPT IN GRID_MESH/BalenaOutputCombined_final.R.

WE ALSO HAVE ADDITIONAL SUB-DIRECTORY, REGPOLLGCP_OUTPUT_ERROR, WITHIN WHICH WE PLACED THE TIME ERROR MESSAGE IN THE OUTPUT IN ORDER TO CONTINUE RUNNING THE SIMULATIONS BEYOND THE TIME ERROR, THAT WOULD BE RUN AT THE END.

- GridMeshRegPolLGCPTradSSi.rda: these are the outputs for the traditional simulation study which are combined in to GridMeshRegPolLGCPTradSS.rda. (i=1:80).

- GridMeshRegPolLGCPSBCSSi.rda: these are the outputs for the SBC simulation study which are combined in to GridMeshRegPolLGCPSBCSS.rda. If there were any time errors, the necessary simulation-grid-mesh combination has been re-run and completed with the error message, `TIME ERROR', removed and a warning message put in the output instead. (i=1:120).

- GridMeshRegPolLGCPSBCSSi_wTE1.rda: this is the completed output for run i with a `TIME ERROR' placed in the correct position in order to re-run of the `TIME ERROR' with access to more processors.

THE SUB-DIRECTORY REGPOLLGCP_OUTPUT_ERROR CONTAINS THE R CODE WHICH WILL INSERT THE TIME ERROR IN ORDER TO ALLOW THE REMAINING SIMULATIONS AND COMBINATIONS TO FINISH BEFORE RE-RUNNING THE TIME ERROR WITH MORE PROCESSORS.

- RegPolSBCTimeErrInsertProcs_final.R: this R code places an error the selected grid-mesh combination for a particular simulation and produces several text files where the old and new (pre/post-error addition) outputs can be compared to check that the code didn't make any other odd changes. This takes in GridMeshRegPolLGCPSBCSSi_TIMEERROR1.rda and outputs GridMeshRegPolLGCPSBCSSi.rda which is then returned to Balena to continue running the remaining simulations.

- GridMeshRegPolLGCPSBCSSi_TIMEERROR1.rda: this denotes the SBC process that for a particular simulation and grid-mesh combination, it took over 6 hours to complete and therefore needs to be re-run. This is the output when the Time Error was found and so not all the runs are completed but the TIME ERROR has not been placed yet.

- temp_dataisbc_TIMEERROR1.rda: this is the generated data for the simulation for process i that produced a time error and it is stored so that it can be easily loaded for the re-runs in GridMeshOptim_TimeErrorRuns_final.R, preventing any unnecessary re-generation of the data set in the re-run.

- GridMeshRegPolLGCPSBCSSi.rda: this denotes the SBC process that for a particular simulation and grid-mesh combination, it took over 6 hours to complete and therefore needs to be re-run. This is the output when the Time Error was found and so not all the runs are completed and `TIME ERROR' was placed in the correct position for continuing the runs - this is not the completed output for i and matched the *_TIMEERROR1.rda output with the only difference being the included error message.

- *.txt: the text files in this sub-directory contain the printed outputs from the checks in RegPolSBCTimeErrInsertProcs_final.R which allow us to compare the results pre- and post- time error addition to check that no major errors were made during the addition of the error.