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

Re: [EnergyPlus_Support] Linux version - can it be used on a Mac?




Linda,

I saw your note with regard to EnergyPlus on the Mac, and thought I'd pass along my experiences regarding trying to get v1.1 running on Mac OS X.
v1.0.3 compiles runs fine, and I was hoping that it would be as easy to  
get v1.1 up and running.  Unfortunately, that's not been my experience.
The first problem I ran into was easy to fix, and it has to do with  
line lengths.  What I found was that a number lines in the source files  
are longer than the 132 character length allowed by the Fortran 95  
standard.  The fix was easy in that I just split the offending lines so  
that they were 132 characters or shorter.  The Absoft compiler  
(ProFortran v. 8 for Mac OS X) doesn't support this "extension" to the  
Fortran 95 specification.  Other compilers may have the same problem.   
Ideally, if only for portability, it would be great if future versions  
of the code stayed within the Fortran 95 standards.
The next problem is not quite so easy to fix, and it has to do with the  
manner in which structures are initialized in the v1.1 code.  What I've  
noticed is that the were zero-based arrays of structures are used, the  
code sometimes relies on the compiler zeroing out the zero element of  
the structure (e.g., the schedules code).  Apparently the Absoft  
compiler handles memory in dynamically allocated arrays of structures  
differently than the compiler you guys are using, and the lack of  
initialization of the structures is causing problems -- loose pointers  
and segmentation faults, to be more specific.  I've talked with Absoft  
a few times regarding this subject, and they may devise a workaround.
I figured I'll let Absoft have a go at it before I spent too much time  
modifying the code.  As I find out more, I'll keep you updated.
Greg Stark


On Monday, May 12, 2003, at 02:58 PM, Linda Lawrie wrote:

At 03:46 PM 5/12/2003, Justin Harrell wrote:

I am curious to know if it is possible to use the Linux version of E+
on a Mac.  Theoretically, since Linux and Mac OS X are both UNIX-
based, this should be possible...Has anyone done this?
Since the Linux version, as distributed, is compiled for X86  
platforms, I
rather doubt it will run on the Mac.  Two options might work for you:   
1)
if there is a Linux "x86" emulator  or 2) using the SoftPC software  
that is
available for the Mac.

We do have some interested parties in compiling a version that we would
subsequently release similar as we have for Windows and Linux but have not
completed that effort yet.


Linda

EnergyPlus WebSite: http://www.energyplus.gov
Owner: EnergyPlus_Support list
Member: EnergyPlus Development Team



[Non-text portions of this message have been removed]


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs from home.
Over 14,500 titles. Free Shipping
& No Late Fees. Try Netflix for FREE!
http://us.click.yahoo.com/BVVfoB/hP.FAA/uetFAA/dkFolB/TM
--------------------------------------------------------------------- ~->
To unsubscribe from this group, send an email to:
EnergyPlus_Support-unsubscribe@xxxxxxxxxxxxxxx

The primary EnergyPlus web site is found at:
http://www.energyplus.gov

The group web site is:
http://groups.yahoo.com/group/EnergyPlus_Support/

Attachments are not allowed -- please post any files to the appropriate folder in the Files are of the Support Web Site.





Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/




----------------------------
Gregory B. Stark, P.E.
Building Synergies, LLC
voice: (303) 474-1259
fax: (303) 265-9588
gbstark@xxxxxxxxxxxxxxxxxxxxx



----------------------------
Gregory B. Stark, P.E.
Building Synergies, LLC
voice: (303) 474-1259
fax: (303) 265-9588
gbstark@xxxxxxxxxxxxxxxxxxxxx