Thread: Umfpack For C

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Posts
    1
    Rep Power
    0
    ..
  2. #2
  3. Contributed User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2005
    Posts
    4,392
    Rep Power
    1871
    First, you should learn to write proper English. Capitalising every word makes you look like a 5 year old.

    Next, have you read the homepage ?
    Notice the phrase "Written in ANSI/ISO C"
    This means given any decent compiler, it should have a fairly good chance of working right away.

    > Borland Compiler
    Please tell me you're not using some decrepit "TurboC" from 25 years ago.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Posts
    3
    Rep Power
    0

    Umfpack For C


    Take it easy man. Why would I capitalise the 1st letter in every word, I just copied the thread from another forum where I asked the same question and when I paste it it looked like that.
    Anyway, I am not a programmer, I just work in the research field and I have a code written in Fortran where I use UMFPACK, I just need to convert this code to C. So I browse and I downloaded (Borland C++) I don't know if this is a new compiler or an old one (nothing). So I almost finished all the code (from Fortran to C) and I just need to make the matrix inversion part. I already seen this link, I downloaded the UMFPACK package and I copied the umfpack.h into the (include folder) but it's not working. If you can help with that in some clear steps (taking into account that I am not a programmer) I will be greatful.
    Thanks again
  6. #4
  7. Contributed User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2005
    Posts
    4,392
    Rep Power
    1871
    > I just copied the thread from another forum where I asked the same question and when I paste it it looked like that.
    Where? Cite your links.
    Did you get any answers there?
    How long did you wait (hours or days)?
    cross-posting is bad, so you need to be careful you don't come across as needy

    > So I browse and I downloaded (Borland C++)
    Again, where from?
    There are many different versions of Borland C++, some better than others.

    > but it's not working.
    read this
    read this as well
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Posts
    3
    Rep Power
    0

    Umfpack For C


    I can't copy the link, I get an error msg since Im a new user, anyway its on tnbforum, and I didn't get any answer from yesterday!
    its borland c++ version 5.0
    I don't know if there's something I should do other than just copy the file umfpack.h into the include folder, or did you suggest to use different compiler, anything..?
    Like in Fortran there's a folder called UMFPACK and a file called BLAS all what you need is just copy and paste it into the same folder of your code, but I believe with C its not the same and I don't know how/what to do !
  10. #6
  11. Contributed User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2005
    Posts
    4,392
    Rep Power
    1871
    I see your CAPS problem

    > I just work in the research field and I have a code written in Fortran where I use UMFPACK, I just need to convert this code to C
    So why are you converting it?

    > Anyway, I am not a programmer,
    So why would you even try to convert it?
    Are you even interested in learning?

    You've got code that works (presumably), just use it and get on with your life.

    To be honest, what you're asking would be hard enough to explain if you were using Linux and GCC, given that you're not a programmer. That you're using a fossil compiler that wasn't even supported on Windows NT 4.0 (nevermind the XP you're using) just makes it all but impossible to explain using this kind of medium (online forums). You really need several hours of 1:1 interactive support to even try this IMO. Isn't there anyone else in your research department who knows any C at all?

    http://www.cise.ufl.edu/research/sparse/umfpack/
    Availability:
    Download the current version of UMFPACK here
    Browse the source code
    read the change log
    Requires the SuiteSparse_config package.
    Requires the AMD package.

    Get all of SuiteSparse here.
    There are 3 inter related packages you need to download, configure, install before you can get your application up and running.

    Given your lack of knowledge (and poor choice of tools - is Linux/GCC an option you could use), you're asking for one hell of a time commitment from someone. People here give their time voluntarily for $0 reward (apart from the satisfaction of helping a fellow programmer understand a problem - your problem has no such satisfaction guarantee).

    TBH, you should post this requirement on the likes of http://www.vworker.com/ and offer up some incentive (aka money) for someone to give you a fully configured project for your chosen OS/Compiler.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper
  12. #7
  13. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Posts
    3
    Rep Power
    0

    Umfpack For C


    Well if its up to me I would keep the Fortran, but life isn't that simple.
    If there is someone who knows about C in my group why would I come to online forums.
    What I meant by im not a programmer is to tell you to make the steps to follow as easy(=clear) as possible.
    Its all about learning new stuff, if im not interested in learning I wouldn't even use Fortran, I was a matlab user before that, I learend how to use Umfpack with fortran (which it was easy as I said) and now I need to use C.
    If you suggest any compiler I could start with that.
    Thanks anyway !

IMN logo majestic logo threadwatch logo seochat tools logo