<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — Fortran to Excel]]></title>
	<link rel="self" href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=564&amp;type=atom" />
	<updated>2016-06-28T18:38:27Z</updated>
	<generator>PunBB</generator>
	<id>http://forums.approximatrix.com/viewtopic.php?id=564</id>
		<entry>
			<title type="html"><![CDATA[Re: Fortran to Excel]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=2562#p2562" />
			<content type="html"><![CDATA[<p>Emilio,</p><p>For the quantities of data you&#039;re implying, I would consider having your Fortran code generate comma-separated-value, or CSV, files, and importing them into Excel.&nbsp; Interfacing with Excel, while possible, will be slow from both a development and computational standpoint.&nbsp; But Excel can quickly read a CSV file, and writing out CSV data is relatively simple in Fortran.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2016-06-28T18:38:27Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=2562#p2562</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Fortran to Excel]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=2561#p2561" />
			<content type="html"><![CDATA[<p>Thank you Klaus Asmus, jeff for your replies.</p><p>I want this to take advante of the fast calculation of the fortran and the easy to review and plotting capabilities of excel.<br />I have a complete code in fortran, with up to 2.000 lines and when I make changes to the code it is difficult to trace the changes in results, that is why I formulated a whole spreadsheet with the code formulae as I can &quot;debbug visually&quot; easily the code, but the problem is the limitation in space and speed of calculation of excel.</p><p>For the case I am studyin I would need about 1.200.000 columns to analyze a 2D sloshing waves problem for 1.600 particles and over 500.000 iterations which is an utopy in Excel. So I had to analyze 16 particles with up to 2.000 columns and a simulation rate of 500 iterations/hour.</p><p>I think I am going to keep on fortran coding and debugging in simply fortran and I will change the code to export values every iteration to review on excel file.</p><p>Best, <br />Emilio</p>]]></content>
			<author>
				<name><![CDATA[cifuentesemilio2010]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3611</uri>
			</author>
			<updated>2016-06-28T16:19:38Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=2561#p2561</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Fortran to Excel]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=2547#p2547" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>cifuentesemilio2010 wrote:</cite><blockquote><p>Hi, <br />I am new to fortran and I would like to ask if someone knows how to connect fortran to excel through simply fortran, or if you have any information about it as I can study this, please.</p></blockquote></div><p>Emelio,</p><p>It is certainly possible to connect Simply Fortran to Excel, but it is not trivial.&nbsp; In fact, it can be quite frustrating.&nbsp; You&#039;ll need to write some custom VBA code to actually call the Fortran routines.&nbsp; There is a pretty good thread about the matter at <a href="http://forums.approximatrix.com/viewtopic.php?id=366">http://forums.approximatrix.com/viewtopic.php?id=366</a>.&nbsp; </p><p>The Fortran routines themselves must also be declared in such a way that they are callable from C and other languages.&nbsp; Depending on the version of Windows (32- or 64-bit) and Excel (again, 32- or 64-bit), you&#039;ll need to format the Fortran declarations differently.</p><p>I would suggest looking into the ISO_C_BINDING module first, which provides guaranteed compatibility between C (and VBA and Excel) and Fortran itself.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2016-06-27T15:55:46Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=2547#p2547</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Fortran to Excel]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=2544#p2544" />
			<content type="html"><![CDATA[<p>Hi,<br />Years ago I made an interface between compac visual Fortran. I was very disappointed about the result and possibilities and decided to scratch this routines from my sources! Until now I could not find comparable interface procedures in SF and I am not missing this.<br />My advice is: forget it, don&#039;t try! It is too complicates an takes too may effort and you can start again to develop depending on changes in MS applications.<br />The question is what do you want to do??:<br /> 1) For calculations Fortran is much better than EXEL! Regular i use short and simple Fortran programs in stead of Exel<br /> 2) For tabular input you need a special dialog routine. I developed it myself<br /> 3) Do you want to get EXEL data in a Fortran program or vise versa? Use a file as interface<br />But never try to use EXEL from out a Fortran program if you have better work to do <br />Regards, klaus</p>]]></content>
			<author>
				<name><![CDATA[Klaus Asmus]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3617</uri>
			</author>
			<updated>2016-06-24T20:50:34Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=2544#p2544</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Fortran to Excel]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=2543#p2543" />
			<content type="html"><![CDATA[<p>Hi, <br />I am new to fortran and I would like to ask if someone knows how to connect fortran to excel through simply fortran, or if you have any information about it as I can study this, please.</p><p>Currently I am working in a Meshless Method programming for Mechanical Engineering.</p><p>I would be grateful with your advices.</p><p>Regards, <br />Emilio</p>]]></content>
			<author>
				<name><![CDATA[cifuentesemilio2010]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3611</uri>
			</author>
			<updated>2016-06-24T16:06:39Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=2543#p2543</id>
		</entry>
</feed>
