Nature Language: freeScatterGatherData:Free memory of main data arrays.
  
CPP: int freeScatterGatherData(int benchmarkType){\\n\n    if (benchmarkType == SCATTER){\\n\n        if (myMPIRank == SCATTERROOT){\\n\n            free(scatterSendBuf);\\n\n        }\\n\n        free(scatterRecvBuf);\\n\n        free(finalBuf);\\n\n    } else if (benchmarkType == GATHER){\\n\n        free(gatherSendBuf);\\n\n        if (myMPIRank == GATHERROOT){\\n\n            free(gatherRecvBuf);\\n\n            free(finalBuf);\\n\n        }\\n\n    }\\n\n    return 0;\\n\n}",
  
Fortran: SUBROUTINE freeData(benchmarkType)\ninteger, intent(in) :: benchmarkType\n\nIF (benchmarkType == SCATTER) THEN\n\nIF (myMPIRank == SCATTERROOT) THEN\ndeallocate(scatterSendBuf)\nEND IF\ndeallocate(scatterRecvBuf)\ndeallocate(finalBuf)\n\nELSE IF (benchmarkType == GATHER) THEN\n\ndeallocate(gatherSendBuf)\nIF (myMPIRank == GATHERROOT) THEN\ndeallocate(gatherRecvBuf)\ndeallocate(finalBuf)\nEND IF\n\nEND IF\n\nEND SUBROUTINE freeData
  