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

David Bradley bradley at tess-inc.com
Thu Jun 19 12:01:05 PDT 2008


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 at yahoo.com>
> To: trnsys-users at 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 at 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 at tess-inc.com 
Web Pages:  http://www.tess-inc.com    and      http://www.trnsys.com

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20080619/e8e27257/attachment-0001.htm>


More information about the TRNSYS-users mailing list