PDA

View Full Version : Ability to specify a nondefault integer argument.


yacob
05-17-2004, 11:00 AM
Dear All,

I am using a non default integer since the integer size becomes more than what a default integer can accommodate in my program. I defined a non default interger as

INTEGER, PARAMETER ::range=SELECTED_INT_KIND(15).

This mean that I can now use an integer up to (+-)10^15. My problem occurs when I use the intrinsic procudure MAX(A1,A2). I got an error message in compile time: "Inconsistent argument data types to intrinsic MAX". Is there a way to use the MAX procudure to my defined integer type or the MAX procudure only applies to a default integer type.

Regards

Yacob

tzeis
05-19-2004, 01:02 AM
If you can define the integer type with Fortran, you should be able to use the MAX function with that type. What is probably happening is that the types of A1 and A2 are different. All the data types in the argument list must be of the same type and kind.