[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TRNSYS-users] Fw: error in my fortran code



Sara,
 I am not sure if anyone replied to you. A MATH DOMAIN error is a generic Fortran error that is generated if you try to perform some illegal operation like taking the log or the square root of a negative number. In your case, I would guess that it is because the argument to a square root function is less than zero. I would recommend that you set up your Type in debugging mode, run your simulation, and step line by line through the code using the debugger so that you can determine why the square root argument is negative.
Kind regards,
 David


sara shaban wrote:


----- Forwarded Message ----
From: sara shaban <malquasar@yahoo.com>
To: trnsys-users@engr.wisc.edu
Sent: Saturday, June 14, 2008 12:25:43 PM
Subject: error in my fortran code

Hi
when I was running my code in fortran I encountered tis error
run-time error M6201: MATH
-sqrt: DOMAIN ERROR

I know where it is but I dont what to do..
please help me.



_______________________________________________ TRNSYS-users mailing list TRNSYS-users@engr.wisc.edu https://www.cae.wisc.edu/mailman/listinfo/trnsys-users

-- 
***********************************************************************
Thermal Energy System Specialists (TESS), LLC 
David BRADLEY                      2916 Marketplace Drive - Suite 104 
Partner                            Madison, WI 53719 
                                   USA
P: +1.608.274.2577 
F: +1.608.278.1475
E-mail: bradley@tess-inc.com 
Web Pages:  http://www.tess-inc.com    and      http://www.trnsys.com

***********************************************************************