<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — Esiest way to share data between differents projects]]></title>
	<link rel="self" href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=616&amp;type=atom" />
	<updated>2017-04-04T04:58:56Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.approximatrix.com/viewtopic.php?id=616</id>
		<entry>
			<title type="html"><![CDATA[Re: Esiest way to share data between differents projects]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=2834#p2834" />
			<content type="html"><![CDATA[<p>Was acctually going to ask something about sharing data aswell but i see you guys are into it. I hoped to avoid creating a sepearate file for each project but it seems its the only way to go if i dont have the source code.</p><p>Ill read thru that link you posted baf. Thnx for sharing // Chris</p>]]></content>
			<author>
				<name><![CDATA[CJohan]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3731</uri>
			</author>
			<updated>2017-04-04T04:58:56Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=2834#p2834</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Esiest way to share data between differents projects]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=2830#p2830" />
			<content type="html"><![CDATA[<p>If you don&#039;t have the source code so that you can merge the source into a single executable, than you really have no choice but to output the results from the first program into a file that is read in by the second program.&nbsp; You can use unformatted I/O which would save some execution time for a large datafile.&nbsp; </p><p>In one program, something like</p><p>write(12)array</p><p>in the the program</p><p>read(21)array</p><p>where 12 and 21 are the unit numbers.&nbsp; Spend some quality time with a Fortran manual, or read some of the material available online, such as</p><p><a href="http://www.am.qub.ac.uk/users/d.dundas/msci_workshop/fortran/exercises/unformatted/unformatted.pdf">http://www.am.qub.ac.uk/users/d.dundas/ … matted.pdf</a></p>]]></content>
			<author>
				<name><![CDATA[baf1]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3660</uri>
			</author>
			<updated>2017-04-02T03:19:47Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=2830#p2830</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Esiest way to share data between differents projects]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=2829#p2829" />
			<content type="html"><![CDATA[<p>Thanks for your response baf1! Could you point me in the right direction about those tools for windows (Right now I&#039;m using only windows), I will certainly check such tools!</p><p>But besides to compare the vectors I also need some matrices/vectors that are calculated in the whole program, and the subroutines that I&#039;m modifying does not have access to that data because are in another project. And I need those matrices to affected that new matrices that is within the new subroutines. </p><p>So, reformulating my question, in one project I have calculated a matrix that is needed in another project, is there a better way to share that data other than writing and reading through a file? the dimension of my array is 7500 x 7500, the txt that is generated is around 1GB and I would like to know a better approach.</p><p>Thanks for any help provided!</p>]]></content>
			<author>
				<name><![CDATA[JManuelR]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3709</uri>
			</author>
			<updated>2017-04-02T02:25:33Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=2829#p2829</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Esiest way to share data between differents projects]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=2817#p2817" />
			<content type="html"><![CDATA[<p>A common method of doing this process is to have test &quot;vectors&quot; (data sets) that you run through the &quot;new&quot; and &quot;old&quot; version of the code.&nbsp; The results from the &quot;old&quot; code could be consider as correct, so you are trying to ensure that the results from the new code match that from the old code.&nbsp; A third program or script would run the test data sets through the new code, then compare the output to the &quot;correct&quot; values, noting any differences in an output file.&nbsp; If you are doing this under linux or can install a few linux type tools under Windows, you can use the shell script commands to run the tests and do the output comparisons easily.</p>]]></content>
			<author>
				<name><![CDATA[baf1]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3660</uri>
			</author>
			<updated>2017-03-26T23:01:51Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=2817#p2817</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Esiest way to share data between differents projects]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=2816#p2816" />
			<content type="html"><![CDATA[<p>Hello again!</p><p>As I mentioned in my first <a href="https://forums.approximatrix.com/viewtopic.php?id=613">post</a>, I&#039;m trying to manipulate a program developed in Fortran 77 mainly. That code has more than 20,000 lines divided in more than 150 subroutines. And right now I&#039;m focusing only in a few subroutines, I&#039;m changing them to free format and whatever recommendation that I read I try to implement. </p><p>I am pretty new to Fortran and for me change the whole project is a huge work that&#039;s why I&#039;m working only in a few subroutines in order to gain confidence with the language. So my approach is the following: for those specific subroutines I created a new project and bring the necessary data to the project to compare.</p><p>Then my question is: is there a way to share arrays/vectors/matrices between different projects in simply fortran? What I did was to print to a txt file the data and then read it in the new project. But I find this tedious, is there a better approach?</p><p>Any help/suggestion would be really appreciated.</p>]]></content>
			<author>
				<name><![CDATA[JManuelR]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3709</uri>
			</author>
			<updated>2017-03-26T22:45:52Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=2816#p2816</id>
		</entry>
</feed>
