CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   DUNS compile with VC++, VF or gcc/g77 in PC (https://www.cfd-online.com/Forums/main/9010-duns-compile-vc-vf-gcc-g77-pc.html)

Ali Irvi April 12, 2005 12:38

DUNS compile with VC++, VF or gcc/g77 in PC
 
I know in this forum there are many experts and gurus.

Can any body here help me how to make and compile DUNS in PC? I am absolutly beginner in compiling stuff! So please any body help!

I don't know how to work with cygwin, I don't know either how gcc works! I just know how to compile a FORTRAN and c++ file with VC6 and VF. Moreover, I really scare of linux and I know I cannot start to work with linux at all!!

Does anyone please can help me to compile with cygwin, gcc or g77 or send me the compiled binery of DUNS?

Thank you very much in advanced. Ali

Finn April 13, 2005 11:17

Re: DUNS compile with VC++, VF or gcc/g77 in PC
 
Today working with Linux is almost easier than working with Windows if you use one of the "big" distributions.

regards

Ali Irvi April 20, 2005 04:59

Re: DUNS compile with VC++, VF or gcc/g77 in PC
 
Why you linux users are so obsessive with PC users?

Imagine tomorrow there would come a fantastic 'unix_xx_2007' system that have some better features than linux, now I ask you?: WOULD YOU MIND TO REMOVE YOUR LINUX AWAY AND FORMAT YOUR HARD DISK´AND INSTALL SUCH NEW SYSTEM??

The same is with me! I have my pc with tens of installed softwares. I cannot simply format my hard disk and install a liunux!!

So if you really wanna help, just answer the question! How can one compile duns with gcc or g77 with cygwin?

Best regards,

Ali

Tom (different one) April 20, 2005 05:48

Re: DUNS compile with VC++, VF or gcc/g77 in PC
 
Actually it would be pretty much painless replacing the Linux system while leaving your work directories as they were (you wouldn't need reformat the harddisk to install another unix type os).

As for your pc - most linux distros will re-partition your harddisk for you (i.e. shrink your windows partition without wiping the disk completely) to make room for the linux OS. If you do this then when you boot your computer you will have a choice of using windows or linux.

blade February 14, 2010 17:11

Quote:

Originally Posted by Ali Irvi
;33897
I know in this forum there are many experts and gurus.

Can any body here help me how to make and compile DUNS in PC? I am absolutly beginner in compiling stuff! So please any body help!

I don't know how to work with cygwin, I don't know either how gcc works! I just know how to compile a FORTRAN and c++ file with VC6 and VF. Moreover, I really scare of linux and I know I cannot start to work with linux at all!!

Does anyone please can help me to compile with cygwin, gcc or g77 or send me the compiled binery of DUNS?

Thank you very much in advanced. Ali

Hello, there. I know how to compile and run duns using vc++ plus VF.
Do you still need it?
I can do it for you.

shirazbj December 11, 2010 08:11

trying to compile it under Ubuntu10.04 with gcc+g95
and also under xp with gcc4.5.

No luck till now.

blade December 11, 2010 08:59

Quote:

Originally Posted by shirazbj (Post 287019)
trying to compile it under Ubuntu10.04 with gcc+g95
and also under xp with gcc4.5.

No luck till now.

see details at
http://www.cfluid.com/bbs/viewthread...extra=page%3D1

shirazbj December 11, 2010 09:29

Quote:

Originally Posted by blade (Post 287024)

It seems one module is missing there. I asked there.

shirazbj December 13, 2010 00:43

succeeded in compiling yours with gcc under xp.
Will try to compile the original one.
thx

blade December 13, 2010 03:17

Quote:

Originally Posted by shirazbj (Post 287148)
succeeded in compiling yours with gcc under xp.
Will try to compile the original one.
thx

thanks for the update.
I would like to let you know that, the original source code can be compiled successfully, but it does have quite a few small bugs which can be annoying. I will try digging out my revised one and putting it on cfluid.com.
Enjoy yourself.

shirazbj December 13, 2010 07:11

I can compile the soureforge one under xp with gcc now. I was trying to see if i can do it.

Not intend to use that code to do any simulation. maybe just to get some idea with reaction calculation.

thx for ur help.

ChicoElizio June 23, 2014 21:47

Quote:

Originally Posted by blade (Post 246001)
Hello, there. I know how to compile and run duns using vc++ plus VF.
Do you still need it?
I can do it for you.

Hello Blade. I'm PhD student and I'm trying to compile and run the DUNS program. I've tried to use gcc on Ubuntu 12.10 LTS and the error was/usr/lib/ld lgcc_s not found. Could you help me? I've tried all the possibilities that I found. Thank you for your attention.

ChicoElizio

blade June 24, 2014 02:18

Quote:

Originally Posted by ChicoElizio (Post 498352)
Hello Blade. I'm PhD student and I'm trying to compile and run the DUNS program. I've tried to use gcc on Ubuntu 12.10 LTS and the error was/usr/lib/ld lgcc_s not found. Could you help me? I've tried all the possibilities that I found. Thank you for your attention.

ChicoElizio

hello,sir
I think you need to locate the library file of libgcc_s.a or libgcc_s.so and specify its path in the makefile.

Best regards
blade

ChicoElizio July 14, 2014 12:48

Duns
 
Quote:

Originally Posted by blade (Post 498374)
hello,sir
I think you need to locate the library file of libgcc_s.a or libgcc_s.so and specify its path in the makefile.

Best regards
blade


Hello Blade

The DUNS code is compiled. Thank you for your tip about the locate the librrary.
Now I'm trying to run the exemple of cylinder (serial) with the duns.script2 original without change and received the following message:

.
.
.
.
**** nblock: 14 ****
**** nmx: 22096 ****

**** iblock: 10 ****
**** iblkmx: 42600 ****
**** iimx: 162 ****
**** iimx2: 82 ****

**** surfmax: 600 ****
**** bindmax: 318 ****
number of interior ghost cells : 1640
allocation problem in getintgc.
nintgc = 1640, nsmall2 = 1000
recompile code such that nsmall2>=nintgc
Exiting DUNS program with value 1.

How can I fix this problem?

Thanks again for your patience.

ChicoElizio

blade July 15, 2014 04:08

Quote:

Originally Posted by ChicoElizio (Post 501446)
Hello Blade

The DUNS code is compiled. Thank you for your tip about the locate the librrary.
Now I'm trying to run the exemple of cylinder (serial) with the duns.script2 original without change and received the following message:

.
.
.
.
**** nblock: 14 ****
**** nmx: 22096 ****

**** iblock: 10 ****
**** iblkmx: 42600 ****
**** iimx: 162 ****
**** iimx2: 82 ****

**** surfmax: 600 ****
**** bindmax: 318 ****
number of interior ghost cells : 1640
allocation problem in getintgc.
nintgc = 1640, nsmall2 = 1000
recompile code such that nsmall2>=nintgc
Exiting DUNS program with value 1.

How can I fix this problem?

Thanks again for your patience.

ChicoElizio

Hello,Sir
you can find a file called parameters or parameter which I do not remember clearly. The file should be in the same directory of the source codes.
Open this file, change the value of nsmall2 to 1640 for this case.
If the problem persists, have a look at the message to get a clue.
Best regards
Dingxi Wang

ChicoElizio July 16, 2014 10:04

Quote:

Originally Posted by blade (Post 501513)
Hello,Sir
you can find a file called parameters or parameter which I do not remember clearly. The file should be in the same directory of the source codes.
Open this file, change the value of nsmall2 to 1640 for this case.
If the problem persists, have a look at the message to get a clue.
Best regards
Dingxi Wang


RUNNING!!! The file "parameters" must be in the same directory where the files are compiled. Your help has been of great importance. Once again thank you very so much.

Francisco (ChicoElizio)

blade July 16, 2014 10:17

Quote:

Originally Posted by ChicoElizio (Post 501755)
RUNNING!!! The file "parameters" must be in the same directory where the files are compiled. Your help has been of great importance. Once again thank you very so much.

Francisco (ChicoElizio)

Congratulations! Enjoy using DUNS.

In case you do not know, I ever wrote a pre-processing GUI for DUNS. You can visit the open discussion page of DUNS at the sourceforge website to find the link.

ChicoElizio August 6, 2014 09:19

Quote:

Originally Posted by blade (Post 501758)
Congratulations! Enjoy using DUNS.

In case you do not know, I ever wrote a pre-processing GUI for DUNS. You can visit the open discussion page of DUNS at the sourceforge website to find the link.

How are you Blade?
I used a pre-processing GUI for DUNS you wrote, it's very good and useful.

I'm having problems when the case is with chemical reaction (rbcc) at the end of the calculation DUNS sends the message as described below.
Do you have any idea of the solution?
Have you know a 3D exemple?
Thanks again for your attention.


Francisco

ita-gtc@itagtc-W240HU-W250HUQ:~/Docu...2.7.1-test.tar/duns-2.7.1-test/duns-2.7.1/test/serial/rbcc$ ./duns-opt.e -nv > out6.dat
*** buffer overflow detected ***: ./duns-opt.e terminated
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(__fortify_fail+0x45)[0xb765b0e5]
/lib/i386-linux-gnu/libc.so.6(+0x103eba)[0xb7659eba]
/lib/i386-linux-gnu/libc.so.6(+0x1031ed)[0xb76591ed]
./duns-opt.e[0x804cedf]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xb756f4e3]
./duns-opt.e[0x8049161]
======= Memory map: ========
08048000-080fe000 r-xp 00000000 08:06 677644 /home/ita-gtc/Documentos/Programa/duns-2.7.1-test.tar/duns-2.7.1-test/duns-2.7.1/test/serial/rbcc/duns-opt.e
080fe000-080ff000 r--p 000b5000 08:06 677644 /home/ita-gtc/Documentos/Programa/duns-2.7.1-test.tar/duns-2.7.1-test/duns-2.7.1/test/serial/rbcc/duns-opt.e
080ff000-08102000 rw-p 000b6000 08:06 677644 /home/ita-gtc/Documentos/Programa/duns-2.7.1-test.tar/duns-2.7.1-test/duns-2.7.1/test/serial/rbcc/duns-opt.e
08102000-0b53a000 rw-p 00000000 00:00 0
0b8cf000-0b8f0000 rw-p 00000000 00:00 0 [heap]
b751c000-b7538000 r-xp 00000000 08:06 4326229 /lib/i386-linux-gnu/libgcc_s.so.1
b7538000-b7539000 r--p 0001b000 08:06 4326229 /lib/i386-linux-gnu/libgcc_s.so.1
b7539000-b753a000 rw-p 0001c000 08:06 4326229 /lib/i386-linux-gnu/libgcc_s.so.1
b7555000-b7556000 rw-p 00000000 00:00 0
b7556000-b76fa000 r-xp 00000000 08:06 4336577 /lib/i386-linux-gnu/libc-2.15.so
b76fa000-b76fb000 ---p 001a4000 08:06 4336577 /lib/i386-linux-gnu/libc-2.15.so
b76fb000-b76fd000 r--p 001a4000 08:06 4336577 /lib/i386-linux-gnu/libc-2.15.so
b76fd000-b76fe000 rw-p 001a6000 08:06 4336577 /lib/i386-linux-gnu/libc-2.15.so
b76fe000-b7702000 rw-p 00000000 00:00 0
b7702000-b772c000 r-xp 00000000 08:06 4336580 /lib/i386-linux-gnu/libm-2.15.so
b772c000-b772d000 r--p 00029000 08:06 4336580 /lib/i386-linux-gnu/libm-2.15.so
b772d000-b772e000 rw-p 0002a000 08:06 4336580 /lib/i386-linux-gnu/libm-2.15.so
b772e000-b7747000 r-xp 00000000 08:06 262169 /usr/lib/libg2c.so.0.0.0
b7747000-b7748000 rw-p 00019000 08:06 262169 /usr/lib/libg2c.so.0.0.0
b7748000-b7755000 rw-p 00000000 00:00 0
b776a000-b7772000 rw-p 00000000 00:00 0
b7772000-b7773000 r-xp 00000000 00:00 0 [vdso]
b7773000-b7793000 r-xp 00000000 08:06 4333332 /lib/i386-linux-gnu/ld-2.15.so
b7793000-b7794000 r--p 0001f000 08:06 4333332 /lib/i386-linux-gnu/ld-2.15.so
b7794000-b7795000 rw-p 00020000 08:06 4333332 /lib/i386-linux-gnu/ld-2.15.so
bfd5e000-bfd7f000 rw-p 00000000 00:00 0 [stack]
Abortado (imagem do núcleo gravada)


All times are GMT -4. The time now is 03:40.