Nature Language: allocateData:Allocates space for the main data arrays. Size of each array is specified by subroutine argument.
  
CPP: int allocatePingpongData(int sizeofBuffer){\n\tpingSendBuf = (int *)malloc(sizeofBuffer * sizeof(int));\n\tpingRecvBuf = (int *)malloc(sizeofBuffer * sizeof(int));\n\tpongSendBuf = (int *)malloc(sizeofBuffer * sizeof(int));\n\tpongRecvBuf = (int *)malloc(sizeofBuffer * sizeof(int));\n\tfinalRecvBuf = (int *)malloc(sizeofBuffer * sizeof(int));\n\treturn 0;\n}
  
Fortran: SUBROUTINE allocateData(sizeofBuffer)\n integer, intent(in) :: sizeofBuffer\n allocate(pingSendBuf(sizeofBuffer), pingRecvBuf(sizeofBuffer))\n allocate(pongSendBuf(sizeofBuffer), pongRecvBuf(sizeofBuffer))\n allocate(finalRecvBuf(sizeofBuffer))\n\n END SUBROUTINE allocateData
  