<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Thanks Holger! that was one obvious thing that i didnt see in the code. :) 
<div class="">
<div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class=""><br class="">
</div>
<div class="">Cheers</div>
<div class="">Raghav</div>
</div>
</div>
</div>
<div>
<blockquote type="cite" class="">
<div class="">On Aug 4, 2016, at 3:55 PM, Holger Schulz <<a href="mailto:holger.schulz@durham.ac.uk" class="">holger.schulz@durham.ac.uk</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div bgcolor="#FFFFFF" text="#000000" class="">
<p class="">Hi Raghav,</p>
<p class="">that looks roughly correct to me, maybe this is the culprit:<br class="">
</p>
<br class="">
<div class="moz-cite-prefix">On 04/08/16 14:08, Raghav Kunnawalkam Elayavalli wrote:<br class="">
</div>
<blockquote cite="mid:609305A8-B1B4-4C19-B4A5-DA1E5E7C9CC7@cern.ch" type="cite" class="">
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>for(int j = 0; j<_NJES_pt;
<font color="#ff0000" class="">++i</font>){</div>
</blockquote>
++j  maybe?<br class="">
<br class="">
Holger<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>