<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body bgcolor="#FFFFFF" fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 12pt;">Yes, Murph.
<div><br>
</div>
<div>Aleks<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF766543" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> nek5000-users-bounces@lists.mcs.anl.gov [nek5000-users-bounces@lists.mcs.anl.gov] on behalf of nek5000-users@lists.mcs.anl.gov [nek5000-users@lists.mcs.anl.gov]<br>
<b>Sent:</b> Thursday, October 27, 2016 1:02 PM<br>
<b>To:</b> nek5000-users@lists.mcs.anl.gov<br>
<b>Subject:</b> [Nek5000-users] Pauls v2 Integration routine...<br>
</font><br>
</div>
<div></div>
<div>
<p>Paul,</p>
<p><br>
</p>
<p>Hi... I'd like to use this also; however, was your intent for the argument of the facint_v() sub to be v2, and not v? Also, would you want to pass v2surf back in /mystuff/?</p>
<p><br>
</p>
<p><i class="moz-txt-slash"><span class="moz-txt-tag"></span><span class="moz-txt-tag"></span></i> if (cbc(f,e,1).eq.'v ') v2surf=v2surf+facint_v(v,area,f,e)<br>
<br>
</p>
<p>Thanks,</p>
<p>Murph</p>
<p><br>
</p>
<p>-----------------------------------------------------------------------------------------------------------<br>
</p>
<p><br>
</p>
<p>common <i class="moz-txt-slash"><span class="moz-txt-tag">/</span>mystuff<span class="moz-txt-tag">/</span></i> v2(lx1*ly1*lz1*lelt)
<br>
integer e,f <br>
<br>
n = nx1*ny1*nz1*nelt <br>
<br>
do i=1,n <br>
v2(i)=vx(i,1,1,1)**2+vy(i,1,1,1)**2+vz(i,1,1,1)**2 <br>
enddo <br>
<br>
v2surf = 0 <br>
do e=1,nelv ! Integrate over all surfaces with cbc='v ' <br>
do f=1,2*ndim <br>
if (cbc(f,e,1).eq.'v ') v2surf=v2surf+facint_v(v,area,f,e) <br>
enddo <br>
enddo <br>
<br>
v2surf = glsum(v2surf,1) ! Sum across all processors <br>
<br>
Note that "area" is passed in the TOTAL common block, which I assume <br>
you are including in the routine. <br>
</p>
<br>
<div class="moz-cite-prefix">On 10/26/2016 1:00 PM, <a class="moz-txt-link-abbreviated" href="mailto:nek5000-users-request@lists.mcs.anl.gov" target="_blank">
nek5000-users-request@lists.mcs.anl.gov</a> wrote:<br>
</div>
<blockquote type="cite">
<pre>Send Nek5000-users mailing list submissions to
<a class="moz-txt-link-abbreviated" href="mailto:nek5000-users@lists.mcs.anl.gov" target="_blank">nek5000-users@lists.mcs.anl.gov</a>
To subscribe or unsubscribe via the World Wide Web, visit
<a class="moz-txt-link-freetext" href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a>
or, via email, send a message with subject or body 'help' to
<a class="moz-txt-link-abbreviated" href="mailto:nek5000-users-request@lists.mcs.anl.gov" target="_blank">nek5000-users-request@lists.mcs.anl.gov</a>
You can reach the person managing the list at
<a class="moz-txt-link-abbreviated" href="mailto:nek5000-users-owner@lists.mcs.anl.gov" target="_blank">nek5000-users-owner@lists.mcs.anl.gov</a>
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Nek5000-users digest..."
</pre>
<br>
<fieldset class="mimeAttachmentHeader" target="_blank"></fieldset> <br>
<pre>Today's Topics:
1. Order of appearance : USERBC and USERCHECK
(<a class="moz-txt-link-abbreviated" href="mailto:nek5000-users@lists.mcs.anl.gov" target="_blank">nek5000-users@lists.mcs.anl.gov</a>)
2. Re: Integrate velocity field along a line
(<a class="moz-txt-link-abbreviated" href="mailto:nek5000-users@lists.mcs.anl.gov" target="_blank">nek5000-users@lists.mcs.anl.gov</a>)
</pre>
<br>
<fieldset class="mimeAttachmentHeader" target="_blank"></fieldset> <br>
<pre>_______________________________________________
Nek5000-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nek5000-users@lists.mcs.anl.gov" target="_blank">Nek5000-users@lists.mcs.anl.gov</a>
<a class="moz-txt-link-freetext" href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a>
</pre>
</blockquote>
<br>
</div>
</div>
</div>
</div>
</body>
</html>