I have tried to test my code and confronted with st strange:
making local pointers with an EXPLICIT lower bound seems to generate faster code.
Is this right? In case it is, why?
Link
"The section (5.2.3) of the F2008 standard referring to the implicit SAVE attribute does not distinguish between the cases of POINTER or not-POINTER."
If in my program (subroutines or functions) I have local pointer variables like
real function f(v)
real, dimension(:), intent(in) ...
Hellow everybody,
I am wondering whether there would be a way in FORTRAN to get a pointer address to an available datatype.
For example:
I have the below data type
module dt
type data
integer, dimension(3) :: comp
real, dimension(:), pointer :: a => null
end type
end module dt
and I would...
Hi,
is there sb who can kindly describe for me what is the difference between elemental and pure function in FORTRAN and when we should use which.
Thanks a lot in advance.
cheers,
Dears,
I have a strange problem which I do not understand what is it.
Based on pointers definition the simple code which I wrote below should work, but it does not please help me.
module all
contains
subroutine deall(a)
integer, pointer :: a
integer, pointer :: curr => null()
curr => a...
Hi,
I have some complications in OO programing, which I do not see in c++.
Does anyone have any solution to this:
TYPE A
CLASS(B) :: b
END TYPE A
TYPE B
CLASS(A) :: a
END TYPE B
This is not allowed in principle, because B has to be defined before it is used in the definition of A.
Because...
Hi !,
Does any one know about image processing libraries for Fortran 2003. I
want to read images, convert it into a matrix, do some manipulation and
save it back as images. Even ideas about how to do this will be appreciated.
Many thanks,
Hi,
Is there any one familiar with c++ who can help me implement this one in Fortran
static const unsigned int d1=0xDEADBEEF ^ (0x1fc4ce47*(d^(d>>13)));
Is the below one is the correct implementation:
Integer :: d1, d
Integer, Parameter :: cns1=Z'DEADBEEF'
Integer, Parameter ...
Hi,
I am very new in c++ so excuse me for my question.
Please sb kindly tell me what does the below sentence means?
static const unsigned int d1=0xDEADBEEF ^ (0x1fc4ce47*(d^(d>>13)));
My question is about what is 0xDEADBEEF or 0x1fc4ce47 ?
If I want to write a description for this so any...
Hello to all,
I have a question that bothers me a lot and I could not find any answer.
I have some structures in my code, that are very useful in parallel programing using MPI, the problem is sometimes in sorting they will cause a lot of latency.
like the below one
Type person
Sequence...
Hi to every body,
Sorry if my question is a little strange.
In writing a subroutine or function, I am wondering whether it is important that we specify the input exactly or not?
I mean which one is faster? Does it actually have any difference?
My program do this kind of things a lot and time...
Hi every body,
I could not find any document about format I0 in write statement.
Does any of you know any document about it. In all documents it said that
Iw.m
An integer with width w, and optionally a minimum number of digits m (adding zeroes on the left if needed).
almost all of them...
Hello to all,
This question has been asked for several times in several ways.
So please excuse me.
I want to be sure, Is there any way to compile modules that are dependent to each other??????????
Module 1
Use 2
End Module 1
Module 2
Use 1
End Module 2
Is there any flag or something like...
Dear All,
I have two questions I hope someone could help me.
If I want to use parameter attribute for data type declaration there would be some problems, please look at the below example:
TYPE PEOPLE ! Defining derived type PEOPLE
INTEGER AGE
CHARACTER*20 NAME...
Hi,
I am wondering if any one knows how to define new meaning for intrinsic functions:
I mean I have defined new data types, and in this regards I had to define new meaning for operators(*, +, -, /) and assignment(=) and there would be no problem.
Now I want to define intrinsic functions...
Hi,
I have one serious question that is bothering me for a while and I could not find the solution.
I have written a general Makefile that can compile different types of files automatically, but when I use it for FORTRAN files and I have Module in my files I have to consider the order of files...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.