Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Backward Finite Difference Heat Equation error

  1. May 24, 2015 #1
    I had these code in this forum but comes out error as below, any suggestion?

    Error 1 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\users\username\documents\visual studio 2010\projects\fdm 001\fdm 001\explicit 001.cpp 27
    Error 2 error C2668: 'atan' : ambiguous call to overloaded function c:\users\username\documents\visual studio 2010\projects\fdm 001\fdm 001\explicit 001.cpp 82
    3 IntelliSense: more than one instance of overloaded function "atan" matches the argument list: c:\users\username\documents\visual studio 2010\projects\fdm 001\fdm 001\explicit 001.cpp 82

     
  2. jcsd
  3. May 24, 2015 #2
    a couple of ideas....1) I would stop passing an integer to the function atan, namely, a 1 without a decimal point, and start passing a float, namely, 1.0 ....or....2) I would stop using the function atan altogether and simply hard code a numeric value for pi with a reasonable number of decimals.
     
  4. Jun 5, 2015 #3
    After all, check values of your matrix. May your algorithm works only with diagonal dominant matrix.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Backward Finite Difference Heat Equation error
Loading...