1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

RFAC in Fortran

  1. Feb 9, 2012 #1
    Hi guys,

    I know I may sound stupid to me many of you but can anybody tell me what does 'rfac' do in Fortran.
     
  2. jcsd
  3. Feb 9, 2012 #2
    I don't understand your question. Can you provide some context?
     
  4. Feb 9, 2012 #3
    Actually I am working on a code that has been written by someone else and I found 'rfac(X)' in that code. The code is written in Fortran and I am trying to use it in Matlab. I have checked everywhere but could not find any function named 'rfac'.

    I hope I am clear now.
     
  5. Feb 9, 2012 #4

    jim hardy

    User Avatar
    Science Advisor
    Gold Member
    2016 Award

    my guess is it's a locally defined variable or function.

    a google search on 'rfac fortran' turns up lots of incidences but in ones i found it was defined in the code.
    maybe something passed to a sub?

    can you do text search on the program?
     
  6. Feb 10, 2012 #5
    have you done a text search for rfac in all your fortran sources? I usually work on Linux and a 'grep' for a given function or variable name returns all the places where is being used...you can gain a lot of insight very quickly by viewing all the usage for a given variable/function.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook