Nek5000 help

106 views
Skip to first unread message

Noorul Hasheem

unread,
Mar 23, 2023, 11:30:46 AM3/23/23
to nek...@googlegroups.com
Hello  I am new to CFD and nek5000.   I am little stuck on a issue with running one of the tutorial  from nek5000 every dependencies are good every files is created but When I am trying to compile “makenek hillp” i get makefile error I have tried this simulation couple of times . I also downloaded the files I need for the compilation from the website periodic hill tutorial .Below I attached picture of the error I get along with my size file since I thought it was my size file. I did make some changes on the size file for one of the simulations b making lx1 = 4 instead of 8 . I did not change lelg as for the mesh for this case lelg >= number of elements.I attached screenshot of the error I have.


Thank you


Screenshot_20230322_145253.png

Valerio Lupi

unread,
Mar 23, 2023, 12:11:45 PM3/23/23
to Noorul Hasheem, Nek5000
Hi,
you get this error when the allocated vectors are too large, which means you have too many elements per process, given by the parameter lelt in the SIZE file. 
Best,

Valerio


Il gio 23 mar 2023, 16:30 Noorul Hasheem <noorul...@gmail.com> ha scritto:
Hello  I am new to CFD and nek5000.   I am little stuck on a issue with running one of the tutorial  from nek5000 every dependencies are good every files is created but When I am trying to compile “makenek hillp” i get makefile error I have tried this simulation couple of times . I also downloaded the files I need for the compilation from the website periodic hill tutorial .Below I attached picture of the error I get along with my size file since I thought it was my size file. I did make some changes on the size file for one of the simulations b making lx1 = 4 instead of 8 . I did not change lelg as for the mesh for this case lelg >= number of elements.I attached screenshot of the error I have.


Thank you


--
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/CAEAC0aH6hVR5igp0UNAmZzA%2B7a1bUbXiKmzXpKEcV8ipNXCPoQ%40mail.gmail.com.

Josuel Kruppa Rogenski

unread,
Mar 23, 2023, 12:13:45 PM3/23/23
to Nek5000
Hi there,
It seems to be a memory problem. Maybe you could increase the number of processing elements and see what happens. Fortran also has an option you can add during compilation: -mc_model=medium
Cherrs

Noorul Hasheem

unread,
Mar 23, 2023, 12:25:21 PM3/23/23
to Josuel Kruppa Rogenski, Nek5000
Hello Joshua thanks for your response ,
How do I exactly add that during the compilation. Will it just be ‘ -mc_model=medium makenek hillp’

Thank you 

Sent from my iPhone

On Mar 23, 2023, at 12:13 PM, Josuel Kruppa Rogenski <jkrog...@alumni.usp.br> wrote:


--
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.

Noorul Hasheem

unread,
Mar 23, 2023, 12:30:15 PM3/23/23
to Josuel Kruppa Rogenski, Nek5000

Sorry for the typo in the name Josuel.
I am trying incorporate that command while compiling . 

Thank you 
Sent from my iPhone

On Mar 23, 2023, at 12:25 PM, Noorul Hasheem <noorul...@gmail.com> wrote:

Hello Joshua thanks for your response ,

Josuel Kruppa Rogenski

unread,
Mar 23, 2023, 12:42:08 PM3/23/23
to Nek5000

Why does the compiler issue relocation errors?

relocation truncated to fit: R_X86_64 against symbol 'foo_' defined in COMMON section in obj/bar.o

This happens when the resultant executable requires more than 2GB of static data. The best way to avoid this is to increase the minimum number of MPI ranks, lpmin in SIZE. Alternatively, you can add -mcmodel=medium to the FFLAGS/CFLAGS variable in makenek. See Compiler Flags for more information.

Noorul Hasheem

unread,
Mar 23, 2023, 12:46:58 PM3/23/23
to Josuel Kruppa Rogenski, Nek5000
So if I am right I add that on to the makenek file itself ? It did not generate makenek file , I copied the makenek file from the bin to the case directory .

Thank you 

Sent from my iPhone

On Mar 23, 2023, at 12:42 PM, Josuel Kruppa Rogenski <jkrog...@alumni.usp.br> wrote:



Dillon Shaver

unread,
Mar 23, 2023, 3:21:54 PM3/23/23
to Nek5000
Before you try changing the makenek file, can you post your SIZE file? If you've decreased lx1, it should require less memory, not more. This problem shouldn't be anywhere near the memory limit requiring -mcmodel=medium.
Reply all
Reply to author
Forward
0 new messages