Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: ya0037
  • Content: Threads
  • Order by date
  1. ya0037

    local pointers with an EXPLICIT lower bound

    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?
  2. ya0037

    locally initialized pointers?

    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) ...
  3. ya0037

    pointer to available datatype

    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...
  4. ya0037

    elemental and pure function

    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,
  5. ya0037

    simple pointer problem

    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...
  6. ya0037

    OO programming complications in FORTRAN 2003

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

    image processing libraries for Fortran 2003

    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,
  8. ya0037

    simple question for implementing a c++ operation in Fortran

    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 ...
  9. ya0037

    simple question

    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...
  10. ya0037

    use array structure with pointer application

    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...
  11. ya0037

    technical question

    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...
  12. ya0037

    format I0

    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...
  13. ya0037

    Is there any way for module dependant compilation!!!!!!!

    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...
  14. ya0037

    PARAMETER attribute for data type

    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...
  15. ya0037

    Intrinsic Function overloading

    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...
  16. ya0037

    compiling fortran module files in disorder

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

Part and Inventory Search

Back
Top