<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic &amp;gt;&amp;gt;...Finder (the OS X browser in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Specifying-the-working-directory-as-the-default-for-READ-and/m-p/978314#M99121</link>
    <description>&lt;P&gt;&amp;gt;&amp;gt;...Finder (the OS X browser) requires the input file to be located in the root directory&lt;/P&gt;
&lt;P&gt;It is more likely that Finder uses the current folder at time of launch of Finder (and which happened to be your root folder).&lt;/P&gt;
&lt;P&gt;Try launchig OSX Terminal session,&lt;BR /&gt;CD to test folder&lt;BR /&gt;Issue command line to launch Finder (but do not change current directory)&lt;BR /&gt;Use Finder to launch app (delete MY.INP, MY.OUT prior to doing so)&lt;/P&gt;
&lt;P&gt;A potential fix for you is to create a shell script and insert it into your application folder.&lt;BR /&gt;Most shell scripts can query the shell to identify the folder of the shell script itself.&lt;BR /&gt;These shells also have functions that can strip off the script name (leaving path to script).&lt;BR /&gt;This then could be used to set current directory before running your application.&lt;/P&gt;
&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
    <pubDate>Mon, 25 Mar 2013 16:40:27 GMT</pubDate>
    <dc:creator>jimdempseyatthecove</dc:creator>
    <dc:date>2013-03-25T16:40:27Z</dc:date>
    <item>
      <title>Specifying the working directory as the default for READ and WRITE statements using XCODE4</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Specifying-the-working-directory-as-the-default-for-READ-and/m-p/978307#M99114</link>
      <description>&lt;P&gt;I have an application with an OPEN statement specifying a static filename for program input data accessed with READ statements (i.e., FILE = 'MY.in') and the same situation for program output via WRITE statements (i.e., FILE = 'MY.out'). &amp;nbsp;I would like the ability for the user to store the input files in a working directory they create to meet their needs before program execution and the output files produced in the working directory during program execution. &amp;nbsp;Compiling the program with Xcode 4 requires the input file to be located in the root directory and the output files are produced there also. &amp;nbsp;What options or settings do I need to make to change this, so that the files will be saved in a working directory created to meet the needs of the user?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2013 23:46:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Specifying-the-working-directory-as-the-default-for-READ-and/m-p/978307#M99114</guid>
      <dc:creator>LookRock</dc:creator>
      <dc:date>2013-03-22T23:46:52Z</dc:date>
    </item>
    <item>
      <title>Have your tried setting the</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Specifying-the-working-directory-as-the-default-for-READ-and/m-p/978308#M99115</link>
      <description>&lt;P&gt;Have your tried setting the current directory to that of the user preferred data file directory, then using a fully qualified path to run the program?&lt;BR /&gt;&lt;BR /&gt;cd /users/preferred/directory&lt;BR /&gt;/location/of/executable/programName {args}&lt;/P&gt;
&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Sun, 24 Mar 2013 14:37:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Specifying-the-working-directory-as-the-default-for-READ-and/m-p/978308#M99115</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2013-03-24T14:37:00Z</dc:date>
    </item>
    <item>
      <title>I don't know offhand how to</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Specifying-the-working-directory-as-the-default-for-READ-and/m-p/978309#M99116</link>
      <description>&lt;P&gt;I don't know offhand how to do this in Xcode. If it were Visual Studio, sure. I'll ask one of our Mac experts to chime in on Monday.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Mar 2013 16:51:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Specifying-the-working-directory-as-the-default-for-READ-and/m-p/978309#M99116</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2013-03-24T16:51:54Z</dc:date>
    </item>
    <item>
      <title>Jim and Steve - Thanks for</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Specifying-the-working-directory-as-the-default-for-READ-and/m-p/978310#M99117</link>
      <description>&lt;P&gt;Jim and Steve - Thanks for the quick replies. &amp;nbsp;Here is a little more information. &amp;nbsp;The applications I am working with perform as I've described in Visual Studio. &amp;nbsp;They happen to be U.S. EPA computer models. &amp;nbsp;I am porting the applications to a Mac and noticed that the input files have to be in the root directory if I refer to them with no path in the OPEN statements (contrary to Visual Studio). &amp;nbsp;I would like to set up the applications this way so that all the user has to do is create a working directory of their chosing, copy the application to the working directory, and create an input data file with the pre-defined name 'MY.INP'. &amp;nbsp;That way all a user has to do is double-click on the application, which accesses MY.INP and produces results in an output file named 'MY.OUT' -- all within the working directory. &amp;nbsp;This happens to be the standard practice for these EPA models operating in Windows, so I would like to preserve the same user experience in OS X, if possible. &amp;nbsp;Also, the user working directory is not set and can change depending on the project. &amp;nbsp;Thanks again for your suggestions.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Mar 2013 22:45:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Specifying-the-working-directory-as-the-default-for-READ-and/m-p/978310#M99117</guid>
      <dc:creator>LookRock</dc:creator>
      <dc:date>2013-03-24T22:45:30Z</dc:date>
    </item>
    <item>
      <title>In your OPEN statement use</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Specifying-the-working-directory-as-the-default-for-READ-and/m-p/978311#M99118</link>
      <description>&lt;P&gt;In your OPEN statement use FILE='./MY.in' or './MY.out'&lt;/P&gt;
&lt;P&gt;"(period)(forward slash)" means current directory&lt;/P&gt;
&lt;P&gt;Depending on O/S (MAC, Linux, *inux), omitting ./ resorts to using a search path (including /root) that apparently omits current directory.&lt;/P&gt;
&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2013 12:37:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Specifying-the-working-directory-as-the-default-for-READ-and/m-p/978311#M99118</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2013-03-25T12:37:50Z</dc:date>
    </item>
    <item>
      <title>LookRock,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Specifying-the-working-directory-as-the-default-for-READ-and/m-p/978312#M99119</link>
      <description>&lt;P&gt;LookRock,&lt;/P&gt;
&lt;P&gt;Additional information. I am not a MAC user so I cannot attest to what is or what is not Standare Operating Procedure, but I can inform you of what to look for.&lt;/P&gt;
&lt;P&gt;In the MS Windows environment, when you double click on a file in the browser, the action is to set the current directory to that of the file being clicked on. When the double click is on a ShortCut, the ShortCut has a property that can specify (override) the current directory.&lt;/P&gt;
&lt;P&gt;The MAC "browser" may behave entirely different behavior. On Ubuntu Linux (not booted right now), I am not sure but I think&amp;nbsp;I recal&amp;nbsp;the browser has a navigable current directory and seperable viewing directory (iow, launch of application may have current directory different than location of app). Also, I seem to recall you can set properties that include current directory.&lt;/P&gt;
&lt;P&gt;What I would suggest you do as an experiment,&lt;/P&gt;
&lt;P&gt;1) create a simple app that writes to FILE = 'MY.out' (don't run it from the IDE, don't run it from the file browser)&lt;BR /&gt;2) copy the app to a test directory (make an empty one)&lt;BR /&gt;3) launch a command window (DOS box)&lt;BR /&gt;4) Use CD to set current directory to that of application&lt;BR /&gt;5) Run the program, use ./YourProgramName (prepend ./)&lt;BR /&gt;6) assuming no error message&lt;/P&gt;
&lt;P&gt;Where did MY.out get written to?&lt;/P&gt;
&lt;P&gt;If written to test directory, then issue is with what the MAC browser uses for current directory.&lt;/P&gt;
&lt;P&gt;Jim Dempsey&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2013 13:01:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Specifying-the-working-directory-as-the-default-for-READ-and/m-p/978312#M99119</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2013-03-25T13:01:24Z</dc:date>
    </item>
    <item>
      <title>Jim -</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Specifying-the-working-directory-as-the-default-for-READ-and/m-p/978313#M99120</link>
      <description>&lt;P&gt;Jim -&lt;/P&gt;
&lt;P&gt;You make an excellent point. &amp;nbsp;Double-clicking on the application in the working directory in Finder (the OS X browser) requires the input file to be located in the root directory and produces the output file in root directory. &amp;nbsp;Executing the application in the working directory in an OS X Terminal session (similar to a Windows DOS session) operates as desired. &amp;nbsp;The input file can be located in a working directory to produce an output file in the working directory. &amp;nbsp;By the way, I did try your suggestion of FILE='./MY.INP', but it produced the same result as FILE = 'MY.INP'. &amp;nbsp;Thank you for your help.&lt;/P&gt;
&lt;P&gt;- Michael&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2013 14:49:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Specifying-the-working-directory-as-the-default-for-READ-and/m-p/978313#M99120</guid>
      <dc:creator>LookRock</dc:creator>
      <dc:date>2013-03-25T14:49:44Z</dc:date>
    </item>
    <item>
      <title>&gt;&gt;...Finder (the OS X browser</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Specifying-the-working-directory-as-the-default-for-READ-and/m-p/978314#M99121</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt;...Finder (the OS X browser) requires the input file to be located in the root directory&lt;/P&gt;
&lt;P&gt;It is more likely that Finder uses the current folder at time of launch of Finder (and which happened to be your root folder).&lt;/P&gt;
&lt;P&gt;Try launchig OSX Terminal session,&lt;BR /&gt;CD to test folder&lt;BR /&gt;Issue command line to launch Finder (but do not change current directory)&lt;BR /&gt;Use Finder to launch app (delete MY.INP, MY.OUT prior to doing so)&lt;/P&gt;
&lt;P&gt;A potential fix for you is to create a shell script and insert it into your application folder.&lt;BR /&gt;Most shell scripts can query the shell to identify the folder of the shell script itself.&lt;BR /&gt;These shells also have functions that can strip off the script name (leaving path to script).&lt;BR /&gt;This then could be used to set current directory before running your application.&lt;/P&gt;
&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2013 16:40:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Specifying-the-working-directory-as-the-default-for-READ-and/m-p/978314#M99121</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2013-03-25T16:40:27Z</dc:date>
    </item>
  </channel>
</rss>

