FEAP User Forum

FEAP => FEAPpv => Topic started by: finaty on May 15, 2017, 05:48:37 PM

Title: Setting for include\integer8 or include\integer4 ?
Post by: finaty on May 15, 2017, 05:48:37 PM
Dear all,

I use FEAPpv, but meet an error in module setmem.f:

“call free(adr(n))”   

error #6362: The data types of the argument(s) are invalid.   [FREE]   K:\feappv31\ver31\program\setmem.f   147   

My operating system is 64 windows, so I proceed as follows and raised that error:
K:\feappv33\ver31\include\integer8

Insteadly, I proceed as follows and that error disappeared:
K:\feappv33\ver31\include\integer4

Why using integer4 for 64 windows, why not integer8 according to the user manual?

Deleting  “call free(adr(n))” , there will be awalys right for both integer4 and integer8, is it realy a mistake?

Thanks
Title: Re: Setting for include\integer8 or include\integer4 ?
Post by: FEAP_Admin on May 15, 2017, 05:58:20 PM
There a couple of possible reasons:

1) When you built the program you did tell the compiler that you wanted to build a 64bit executable.  Note the default in the Intel compiler is 32-bits.

2) It could be that you have a 32-bit operating system installed (even if your computer has 64-bit hardware).
Title: Re: Setting for include\integer8 or include\integer4 ?
Post by: finaty on May 15, 2017, 07:01:42 PM
1) Sure, the error happens here. I turn to x64 compiler, the program works well now.

Thanks for your quick reply!
Title: Re: Setting for include\integer8 or include\integer4 ?
Post by: mubeen on August 06, 2017, 03:58:28 AM
There a couple of possible reasons:

1) When you built the program you did tell the compiler that you wanted to build a 64bit executable.  Note the default in the Intel compiler is 32-bits.

2) It could be that you have a 32-bit operating system installed (even if your computer has 64-bit hardware).

Hi FEAP_Admin,
I have used instructions from the following youtube video of Prof. Govindjee (I am using FEAP 8.2)
https://www.youtube.com/watch?v=7QAh6QvOT6s
 
I am using 64 bit Intel Visual Fortran 11.1.048 (with Visual Studio 2008 on Windows 7 64bit). I have checked the compiler version in Visual Studio menu: Tools -> Options -> Intel Fortran -> Compilers : x64

(https://s6.postimg.org/jb4g1s73l/Compilers.png)

ad the Configuration Manager also uses Release:x64 configuration

(https://s6.postimg.org/5ew7pwaup/configurations.png)

ad finally the include files are also integer8

(https://s6.postimg.org/f0ps6720h/properties.png)

despite all this, I am still getting this error  during Build:

Error   1    error #6362: The data types of the argument(s) are invalid.   [FREE]   D:\feap82_test\ver82\compile\setmem.f   145   
Error   2    error #6362: The data types of the argument(s) are invalid.   [FREE]   D:\feap82_test\ver82\compile\setmem.f   199   
Error   3   Compilation Aborted (code 1)   D:\feap82_test\ver82\compile\setmem.f   1   

I will be very thankful for any hint about resolving the error.
Best regards,
Mubeen.