Compile Precomp

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?

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

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: drive.google.com/drive/folders/ … sp=sharing. Does using that solve the problem?

Best regards,

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

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

Dear Bonnie,

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

Chen.Cheng

hi
I have run the precomp software correctly and got the results and would like to know how to validate the outputs
In your opinion, what tools and software should I use to validate the outputs?

Dear @Ali.Rouhbakhsh,

By “validate”, do you mean comparison to measured data? Or do you mean that you want to “verify” the results from PreComp against the results from another software?

PreComp computes cross-sectional beam properties of composite structures. Other software such as NuMAD, VABS , BECAS, ANBA, or SONATA could be used to compare to the results of PreComp.

Best regards,