Author Topic: Setting for include\integer8 or include\integer4 ?  (Read 6389 times)

finaty

  • New Member
  • *
  • Posts: 4
Setting for include\integer8 or include\integer4 ?
« 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

FEAP_Admin

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 993
Re: Setting for include\integer8 or include\integer4 ?
« Reply #1 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).

finaty

  • New Member
  • *
  • Posts: 4
Re: Setting for include\integer8 or include\integer4 ?
« Reply #2 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!

mubeen

  • Jr. Member
  • **
  • Posts: 22
    • Mubeen Shahid
Re: Setting for include\integer8 or include\integer4 ?
« Reply #3 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



ad the Configuration Manager also uses Release:x64 configuration



ad finally the include files are also integer8



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.
« Last Edit: August 06, 2017, 04:18:49 AM by mubeen »