makenek error after adding turb_outflow

101 views
Skip to first unread message

Ansh Chaube

unread,
Sep 30, 2019, 10:59:41 PM9/30/19
to Nek5000
Hello.

I modified my userchk as shown below which is resulting in makenek errors (a sample from Cetus is posted below userchk). The case was compiling before the changes I made.Could you please suggest what's going wrong? Thanks.

      subroutine userchk()

c      implicit none

      include 'SIZE'
      include 'TOTAL'
      
      lt = lx1*ly1*lz1*lelt
      common /myoutflow/ d(lt),w1(lt)      
      ratio = 1.5
      uin = 0

      call turb_outflow(d,w1,ratio,uin)

      if( time.ge.60) iostep = 1000   

      return
      end
THE ERROR:
** get_limits   === End of Compilation 12 ===
** i8gl_running_sum   === End of Compilation 43 ===
** close_files   === End of Compilation 44 ===
** neknekgsync   === End of Compilation 45 ===
** setnekcomm   === End of Compilation 46 ===
** get_limits_nodt   === End of Compilation 13 ===
** usrdat0   === End of Compilation 14 ===
** usrsetvert   === End of Compilation 15 ===
1501-511  Compilation failed for file pcht.f.
make: *** [usrfile] Error 1
make: *** Waiting for unfinished jobs....
1501-510  Compilation successful for file comm_mpi.f.
"/home/achaube/Nek5000/core/mxm_std.f", 1500-036 (I) The NOSTRICT option (default at OPT(3)) has the potential to alter the semantics of a program.  Please refer to documentation on the STRICT/NOSTRICT option for more information.
.
<many more lines of the same>
.
.
"/home/achaube/Nek5000/core/mxm_std.f", 1500-036 (I) The NOSTRICT option (default at OPT(3)) has the potential to alter the semantics of a program.  Please refer to documentation on the STRICT/NOSTRICT option for more information.
1501-510  Compilation successful for file mxm_std.f.

Nicolas Offermans

unread,
Oct 1, 2019, 7:50:48 AM10/1/19
to Nek5000
Hi Ansh,

Maybe you can try to define lt as a constant parameter since it is used to define the size of your arrays:
parameter (lt = lx1*ly1*lz1*lelt)
And as a general comment, I would recommend to keep the "implicit none" statement in your routines to prevent bugs and typos.
Let know if that helps!

Best,
Nicolas

Obabko, Aleksandr

unread,
Oct 1, 2019, 8:03:06 AM10/1/19
to Ansh Chaube, Nek5000
Hi Ansh,

these are warnings since the compilation was successful for the routine.

Aleks

From: nek...@googlegroups.com <nek...@googlegroups.com> on behalf of Ansh Chaube <anshuman...@gmail.com>
Sent: Monday, September 30, 2019 9:59 PM
To: Nek5000 <nek...@googlegroups.com>
Subject: [nek5000] makenek error after adding turb_outflow
 
--
You received this message because you are subscribed to the Google Groups "Nek5000" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nek5000/d7587e60-d113-4e9f-a703-9b8b17836678%40googlegroups.com.

Ansh Chaube

unread,
Oct 1, 2019, 10:10:58 AM10/1/19
to Nek5000
Hi Nicolas, Aleks,

Thanks! There's no nek5000 executable being generated so I can't actually run the job, perhaps due to the error before the warnings.

I tried what was suggested but I'm getting the same errors and warnings.

Thanks again,
Ansh.
To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+unsubscribe@googlegroups.com.

Ansh Chaube

unread,
Oct 1, 2019, 10:13:28 AM10/1/19
to Nek5000
The files are in PANDAval/achaube/pcht if that helps.

Stefan Kerkemeier

unread,
Oct 1, 2019, 10:14:16 AM10/1/19
to Ansh Chaube, Nek5000
Please post the full compiler output otherwise we don't what's going wrong.

-----Original message-----
> From:Ansh Chaube <anshuman...@gmail.com>
> Sent: Tuesday 1st October 2019 17:10
> To: Nek5000 <nek...@googlegroups.com>
> Subject: Re: [nek5000] makenek error after adding turb_outflow
>
> Hi Nicolas, Aleks,
>
> Thanks! Theres no nek5000 executable being generated so I cant actually run the job, perhaps due to the error before the warnings.
>
> I tried what was suggested but Im getting the same errors and warnings.
>
> Thanks again,
> Ansh.
>
> On Tuesday, October 1, 2019 at 7:03:06 AM UTC-5, obabko wrote:
> Hi Ansh,
>
> these are warnings since the compilation was successful for the routine.
>
> Aleks
> -----------
> From: nek...@googlegroups.com <mailto:nek...@googlegroups.com> <nek...@googlegroups.com <mailto:nek...@googlegroups.com>> on behalf of Ansh Chaube <anshuman...@gmail.com <mailto:anshuman...@gmail.com>>
> Sent: Monday, September 30, 2019 9:59 PM
> To: Nek5000 <nek...@googlegroups.com <mailto:nek...@googlegroups.com>>
> Subject: [nek5000] makenek error after adding turb_outflow
> Hello.
>
> I modified my userchk as shown below which is resulting in makenek errors (a sample from Cetus is posted below userchk). The case was compiling before the changes I made.Could you please suggest whats going wrong? Thanks.
> nek5000+u...@googlegroups.com <mailto:nek5000+u...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/nek5000/d7587e60-d113-4e9f-a703-9b8b17836678%40googlegroups.com <https://groups.google.com/d/msgid/nek5000/d7587e60-d113-4e9f-a703-9b8b17836678%40googlegroups.com?utm_medium=email&utm_source=footer>.
> --
> You received this message because you are subscribed to the Google Groups "Nek5000" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+u...@googlegroups.com <mailto:nek5000+u...@googlegroups.com>.
> To view this discussion on the web visit https://groups.google.com/d/msgid/nek5000/337e2a01-05be-47e7-9a51-58404ba00427%40googlegroups.com <https://groups.google.com/d/msgid/nek5000/337e2a01-05be-47e7-9a51-58404ba00427%40googlegroups.com?utm_medium=email&utm_source=footer>.

Fischer, Paul

unread,
Oct 1, 2019, 10:18:43 AM10/1/19
to Stefan Kerkemeier, Ansh Chaube, Nek5000

Dear Ansh,

The issue appears to be that your pcht.usr file is not compiling correctly.

When this is the case I sometimes find it useful to build "zero.usr" (found
in ~/Nek5000/core/zero.usr)

Then, once that has built, try

makenek pcht

That should reveal the issue.

Actually, on closer inspection, I see that the error is here:

  
      lt = lx1*ly1*lz1*lelt
You need parameter(lt=lx1*ly1*lz1*lelt)

hth,

Paul


From: nek...@googlegroups.com <nek...@googlegroups.com> on behalf of Stefan Kerkemeier <stg...@gmail.com>
Sent: Tuesday, October 1, 2019 10:12 AM
To: Ansh Chaube <anshuman...@gmail.com>; Nek5000 <nek...@googlegroups.com>
Subject: RE: [nek5000] makenek error after adding turb_outflow
 
To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nek5000/kcim.5d936cf6.6cd0.192bf5670dea155e%40ucs.k2.intranet.

Ansh Chaube

unread,
Oct 1, 2019, 12:06:08 PM10/1/19
to Nek5000
Thanks Professor Fischer, that did the trick.
Thanks Aleks. Sorry Stefan.

> Sent: Monday, September 30, 2019 9:59 PM
> To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+unsubscribe@googlegroups.com <mailto:nek5000+unsubscribe@googlegroups.com>.
To unsubscribe from this group and stop receiving emails from it, send an email to nek5000+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages