[esp-r] Re: Compiling ESP-r source code

Ferguson, Alex Alex.Ferguson at NRCan-RNCan.gc.ca
Wed Dec 10 15:38:04 GMT 2008


We've recently concluded that version 4.1 of the GCC compiler (gcc/g++/gfortran) is actually more robust than GCC 3.4 (gcc/g++/g77). gcc 4.2.X has produced some unexplained floating-point errors in ESP-r code; all of these relate to the plant network. We have not yet tested ESP-r using gcc 4.3.X.
 
Alex Ferguson
Sustainable Buildings and Communities (Housing Group)
CanmetENERGY
Natural Resources Canada
P:+1 613 995 3294
F:+1 613 996 9909
Alex.Ferguson at NRCan-RNCan.gc.ca
 
 
________________________________

From: esp-r-bounces at lists.strath.ac.uk [mailto:esp-r-bounces at lists.strath.ac.uk] On Behalf Of Per Haugaard
Sent: December 10, 2008 08:58
To: esp-r; ESP-r_ny
Subject: [esp-r] Re: Compiling ESP-r source code


Hey Jon and the rest of the usergroup.,

Thank you for your reply to my query. I have a Ubuntu version 8.10 and it seems like it use gcc, g++ and gfortran version 4.3.2. There are no g77 in the package manager.

I therefore concluded that I have to install via the command: 

  ./Install -d /opt/esru42 --gcc4

Is it safe to run ESP-r with gcc4 compiler?

I can via the install --help see that I should use the gcc3-version 
because the result obtained with ESP-r binaries build with gcc4 exhibit 
unexplained differences. 

How do I on my machine increase the number of zone and keep a high  
accuracy in the calculations? Can I compile it to gcc3 instead and how do I do that?

Any help is appreciated.


Best regard

Per Haugaard
 




______________________

Per Haugaard,
Griffenfeldsgade 33, 2.tv
2200 København N
Denmark

mobil: +45 26 39 06 40
E-mail: perhaugaard at yahoo.dk

--- Den ons 10/12/08 skrev Jon Hand <jon at esru.strath.ac.uk>:


	Fra: Jon Hand <jon at esru.strath.ac.uk>
	Emne: [esp-r] Re: Compiling ESP-r source code
	Til: "perhaugaard at yahoo.dk" <perhaugaard at yahoo.dk>, "ESP-r_ny" <esp-r at lists.strath.ac.uk>, "esp-r" <esp-r at strath.ac.uk>
	Cc: "Jon Hand" <jon at esru.strath.ac.uk>
	Dato: onsdag 10. december 2008 10.44
	
	
	A recent question about compiling.  Actually there are more issues in the
	warning
	message than about XML....
	
	You can get around the XML issue by saying no to the inclusion of XML.
	
	There is a line g77: command not found - this is the fortran compiler and
	nothing
	is going to happen if it does not find the compiler.  What is likely is that:
	a) your machine is newer and is using the
	 gfortran compiler and a newer
	   version of the gcc compiler collection.  Check this via the commands
	   which gcc
	   gcc --version
	
	   which g77
	   g77 --version
	
	   which gfortran
	   gfortran --version
	
	Sometimes g77 is really g77-3.4 and gcc is really gcc-3.4 in which case
	you would install via the command
	  ./Install -d /usr/esru --compiler_version -3.4
	
	If your machine has gfortran and is using a version of gcc greater than 4.0
	then check the Install --help messages for the syntax of using version 4
	compilers.
	
	b) your machine does not have either the g77 or gfortran then you
	will need to use your package manager to install the compiler.
	
	-ESRU
	________________________________________
	From: esp-r-bounces at lists.strath.ac.uk [esp-r-bounces at lists.strath.ac.uk] On
	Behalf Of Per Haugaard [perhaugaard at yahoo.dk]
	Sent: 10 December 2008 09:01
	To: ESP-r_ny; esp-r
	Cc: Per
	 Haugaard
	Subject: [esp-r]  Compiling ESP-r source code
	
	Dear Usergroup,
	
	I have installed the pre-compiled binary files with out any problems. In an
	actual project I need to increase the number of zones to 42 and therefore I have
	tried to compile the ESP-r source code according to this.
	
	During the installation the following warning message 'libxml2 library does
	not appear to be installed' is showed and the installation is stopped. Refer
	to the below massage:
	
	cd `pwd`/lib; \
	    make the_libNoH3KReports
	make[1]: Entering directory `/trunk/src/lib'
	rm -f TReports_dummy.F ;
	ln -s `pwd`/../cetc/h3kreports/TReports_dummy.F . ;
	g77  -I../include -I../shocc -I/usr/local/include -I../cetc/h3kreports -DLIN
	-DX11    -fno-automatic -finit-local-zero -c TReports_dummy.F
	make[1]: g77: Command not found
	make[1]: *** [TReports_dummy.o] Error 127
	make[1]: Leaving directory `/trunk/src/lib'
	make: ***
	 [disableXML] Error 2
	 -----------------------------------------
	 Install: Fatal error.
	 Executable disableXML could not be built!
	 Installation aborted.
	
	I have looked in the synaptic package manager and I have issued apt-get install
	libxml2 but it is allready installed on the system but does not appear in the
	/src/include or /usr/local/include folder.
	
	Any idea of what has gone wrong in my installation of the source code?
	
	Any help is appreciated :)
	
	
	Best regards
	
	Per Haugaard
	
	
	______________________
	
	Per Haugaard,
	Griffenfeldsgade 33, 2.tv
	2200 København N
	Denmark
	
	mobil: +45 26 39 06 40
	E-mail: perhaugaard at yahoo.dk
	
	________________________________
	
	Find din nye laptop på kelkoo.dk. Se de gode tilbud
	her<http://dk.yahoo.com/r/pat/mm>!
	
	_______________________________________________
	esp-r mailing
	 list
	esp-r at lists.strath.ac.uk
	http://lists.strath.ac.uk/mailman/listinfo/esp-r


________________________________


Trænger du til at se det store billede? Kelkoo giver dig gode tilbud på LCD TV <http://dk.yahoo.com/r/pat/lcd> !	
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.strath.ac.uk/archives/esp-r/attachments/20081210/bfdb721d/attachment.html 


More information about the esp-r mailing list