Compile Precomp

Provide feedback, request enhancements, and get help with wind-turbine computer-aided engineering tools.

Moderators: Bonnie.Jonkman, Jason.Jonkman

Chen.Cheng
Posts: 3
Joined: Mon Jun 29, 2020 9:23 pm
Organization: Nanjing University of Aeronautics and Astronautics
Location: Nanjing

Compile Precomp

Postby Chen.Cheng » Tue Jun 30, 2020 11:53 pm

Dear all:

I've recently been learning Precomp(v1.00.04) and trying to compile it with IVF. However, I'm having some difficulties with the compilation process and I'm considering two possible errors:

1.Precomp(v1.00.04)'s folder contains only three files( 'mods_precomp.f90' , 'PreComp.f' and 'SetProg.f90'),and is missing the necessary NWTC_library module. The oldest version I found from github is NWTC_library v1.05.00, but as mentioned in previous discussions(the links are as follows), compilation may require NWTC_library v1.04.01. I think this version is hard to find, is there anyone kind enough to provide resources on this module?
viewtopic.php?f=4&t=1066&p=4535&hilit=precomp#p4535

2.I'm not very familiar with the IVF compilation method. My approach is to compile the all files in one folder, The compilation process and prompted error messages are as follows:
1>Compiling with Intel(R) Visual Fortran Compiler XE 14.0.1.139 [Intel(R) 64]...
1>DoubPrec.f90
1>mods_precomp.f90
1>ModMesh.f90
1>SysIVF.f90
1>NWTC_IO.f90
1>NWTC_Num.f90
1>NWTC_Aero.f90
1>NWTC_Library.f90
1>PreComp.f
1>BufferRoutines.f90
1>SetProg.f90
1>Linking...
1>PreComp.obj : error LNK2019: external symbol that cannot be parsed PICONSTS, which is referenced in the function MAIN__.
1>x64\Debug\c.exe : fatal error LNK1120: 1 unresolved external command
So I'm not sure the compilation process is correct.

That's the difficulties I'm having, and I'm hoping that someone kind will answer them.

Thanks

Chen.Cheng

Jason.Jonkman
Posts: 4864
Joined: Thu Nov 03, 2005 4:38 pm
Location: Boulder, CO
Contact:

Re: Compile Precomp

Postby Jason.Jonkman » Wed Jul 01, 2020 7:21 am

Dear Chen.Cheng,

Sorry, but I have no experience compiling PreComp and am not familiar with that error.

I've placed the older v1.04.01 of the NWTC Library here: https://drive.google.com/drive/folders/ ... sp=sharing. Does using that solve the problem?

Best regards,
Jason Jonkman, Ph.D.
Senior Engineer | National Wind Technology Center (NWTC)

National Renewable Energy Laboratory (NREL)
15013 Denver West Parkway | Golden, CO 80401
+1 (303) 384 – 7026 | Fax: +1 (303) 384 – 6901
nwtc.nrel.gov

Chen.Cheng
Posts: 3
Joined: Mon Jun 29, 2020 9:23 pm
Organization: Nanjing University of Aeronautics and Astronautics
Location: Nanjing

Re: Compile Precomp

Postby Chen.Cheng » Mon Jul 06, 2020 8:18 pm

Dear Jason,

Thank you very much.After using the files in the link you provided, Precomp has compiled successfully.

The problem now is that when I run the exe file, it shows that several dll files are missing (libifcoremdd. dll, libifportMD.dll, libmmd.dll).

Maybe this problem is not related to Precomp's code. I'll try to debug it myself, and if I can't solve it, I'll come back for more advice!

Thanks again!

Chen.Cheng

Bonnie.Jonkman
Posts: 566
Joined: Thu Nov 10, 2005 10:51 am
Organization: Envision Energy USA
Location: Colorado
Location: Boulder, CO
Contact:

Re: Compile Precomp

Postby Bonnie.Jonkman » Mon Jul 06, 2020 9:31 pm

Those DLLs are necessary because you built with dynamic libraries instead of static ones.

With dynamic libraries, you have a few options:
  1. To run the code on the machine you compiled with, open the Intel compiler environment command window (this will be on your start menu, under something like "Intel Parallel Studio" "Compiler <version> for IA-32"), and run the code from that command window, or
  2. To run on any Windows machine, download and install the appropriate version of the Intel redistributable libraries here: https://software.intel.com/content/www/ ... rsion.html

Otherwise, try to build with static libraries (under "project properties", select "Configuration Properties"->"Fortran"->"Libraries", "Runtime Library", and choose "Multithreaded"). Then the executable won't depend on those dlls.
Bonnie Jonkman

Envision Energy USA, 2016-
National Renewable Energy Laboratory, 2003-2016

Chen.Cheng
Posts: 3
Joined: Mon Jun 29, 2020 9:23 pm
Organization: Nanjing University of Aeronautics and Astronautics
Location: Nanjing

Re: Compile Precomp

Postby Chen.Cheng » Tue Jul 07, 2020 12:41 am

Dear Bonnie,

Thank you for your patient and professional guidance. I think my problem should be solved now.


Chen.Cheng


Return to “Computer-Aided Engineering Software Tools”

Who is online

Users browsing this forum: No registered users and 1 guest