This commit is contained in:
Wolfgang Hottgenroth 2016-08-09 16:53:55 +02:00
commit fe87a8a1eb
3 changed files with 161 additions and 0 deletions

96
.cproject Normal file
View File

@ -0,0 +1,96 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
<storageModule moduleId="org.eclipse.cdt.core.settings">
<cconfiguration id="photran.managedbuild.config.gnu.fortran.macosx.exe.debug.893374178">
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="photran.managedbuild.config.gnu.fortran.macosx.exe.debug.893374178" moduleId="org.eclipse.cdt.core.settings" name="Debug">
<externalSettings/>
<extensions>
<extension id="org.eclipse.cdt.core.MachO64" point="org.eclipse.cdt.core.BinaryParser"/>
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.photran.core.GFortranErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
</extensions>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
<configuration artifactName="${ProjName}" buildProperties="" cleanCommand="rm -rf" description="" errorParsers="org.eclipse.photran.core.GFortranErrorParser;org.eclipse.cdt.core.GCCErrorParser;org.eclipse.cdt.core.GLDErrorParser;org.eclipse.cdt.core.GASErrorParser;org.eclipse.cdt.core.GmakeErrorParser" id="photran.managedbuild.config.gnu.fortran.macosx.exe.debug.893374178" name="Debug" parent="photran.managedbuild.config.gnu.fortran.macosx.exe.debug">
<folderInfo id="photran.managedbuild.config.gnu.fortran.macosx.exe.debug.893374178." name="/" resourcePath="">
<toolChain id="photran.managedbuild.toolchain.gnu.fortran.macosx.exe.debug.920138069" name="GCC Fortran" superClass="photran.managedbuild.toolchain.gnu.fortran.macosx.exe.debug">
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.MachO64" id="photran.managedbuild.target.gnu.platform.macosx.exe.debug.656138162" name="Debug Platform" osList="macosx" superClass="photran.managedbuild.target.gnu.platform.macosx.exe.debug"/>
<builder buildPath="${workspace_loc:/test1}/Debug" id="photran.managedbuild.target.gnu.builder.macosx.exe.debug.92841132" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" superClass="photran.managedbuild.target.gnu.builder.macosx.exe.debug"/>
<tool id="photran.managedbuild.tool.gnu.c.compiler.macosx.exe.debug.2020543679" name="GCC C Compiler" superClass="photran.managedbuild.tool.gnu.c.compiler.macosx.exe.debug">
<inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.1887844469" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/>
</tool>
<tool id="photran.managedbuild.tool.gnu.fortran.compiler.macosx.exe.debug.1898756259" name="GNU Fortran Compiler" superClass="photran.managedbuild.tool.gnu.fortran.compiler.macosx.exe.debug">
<inputType id="photran.managedbuild.tool.gnu.fortran.compiler.input.566872108" superClass="photran.managedbuild.tool.gnu.fortran.compiler.input"/>
</tool>
<tool id="photran.managedbuild.tool.macosx.fortran.linker.macosx.exe.debug.437573417" name="MacOS X Fortran Linker" superClass="photran.managedbuild.tool.macosx.fortran.linker.macosx.exe.debug">
<option id="macosx.fortran.link.option.libs.2043987273" name="Libraries (-l)" superClass="macosx.fortran.link.option.libs" valueType="libs">
<listOptionValue builtIn="false" value="lapack"/>
</option>
<inputType id="photran.managedbuild.tool.macosx.fortran.linker.input.1670929689" superClass="photran.managedbuild.tool.macosx.fortran.linker.input">
<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
<additionalInput kind="additionalinput" paths="$(LIBS)"/>
</inputType>
</tool>
<tool id="photran.managedbuild.tool.gnu.assembler.macosx.exe.debug.1121493678" name="GCC Assembler" superClass="photran.managedbuild.tool.gnu.assembler.macosx.exe.debug">
<inputType id="cdt.managedbuild.tool.gnu.assembler.input.68403707" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
</tool>
</toolChain>
</folderInfo>
</configuration>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
</cconfiguration>
<cconfiguration id="photran.managedbuild.config.gnu.fortran.macosx.exe.release.1908649681">
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="photran.managedbuild.config.gnu.fortran.macosx.exe.release.1908649681" moduleId="org.eclipse.cdt.core.settings" name="Release">
<externalSettings/>
<extensions>
<extension id="org.eclipse.cdt.core.MachO64" point="org.eclipse.cdt.core.BinaryParser"/>
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.photran.core.GFortranErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
</extensions>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
<configuration artifactName="${ProjName}" buildProperties="" cleanCommand="rm -rf" description="" errorParsers="org.eclipse.photran.core.GFortranErrorParser;org.eclipse.cdt.core.GCCErrorParser;org.eclipse.cdt.core.GLDErrorParser;org.eclipse.cdt.core.GASErrorParser;org.eclipse.cdt.core.GmakeErrorParser" id="photran.managedbuild.config.gnu.fortran.macosx.exe.release.1908649681" name="Release" parent="photran.managedbuild.config.gnu.fortran.macosx.exe.release">
<folderInfo id="photran.managedbuild.config.gnu.fortran.macosx.exe.release.1908649681." name="/" resourcePath="">
<toolChain id="photran.managedbuild.toolchain.gnu.fortran.macosx.exe.release.314499869" name="GCC Fortran" superClass="photran.managedbuild.toolchain.gnu.fortran.macosx.exe.release">
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.MachO64" id="photran.managedbuild.target.gnu.platform.fortran.macosx.exe.release.66139827" name="Release Platform" osList="macosx" superClass="photran.managedbuild.target.gnu.platform.fortran.macosx.exe.release"/>
<builder buildPath="${workspace_loc:/test1}/Release" id="photran.managedbuild.target.gnu.builder.macosx.exe.release.1445330771" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" superClass="photran.managedbuild.target.gnu.builder.macosx.exe.release"/>
<tool id="photran.managedbuild.tool.gnu.c.compiler.macosx.exe.release.1530359204" name="GCC C Compiler" superClass="photran.managedbuild.tool.gnu.c.compiler.macosx.exe.release">
<inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.1867894736" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/>
</tool>
<tool id="photran.managedbuild.tool.gnu.fortran.compiler.macosx.exe.release.2122245101" name="GNU Fortran Compiler" superClass="photran.managedbuild.tool.gnu.fortran.compiler.macosx.exe.release">
<inputType id="photran.managedbuild.tool.gnu.fortran.compiler.input.2106428418" superClass="photran.managedbuild.tool.gnu.fortran.compiler.input"/>
</tool>
<tool id="photran.managedbuild.tool.macosx.fortran.linker.macosx.exe.release.1404469464" name="MacOS X Fortran Linker" superClass="photran.managedbuild.tool.macosx.fortran.linker.macosx.exe.release">
<inputType id="photran.managedbuild.tool.macosx.fortran.linker.input.792469638" superClass="photran.managedbuild.tool.macosx.fortran.linker.input">
<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
<additionalInput kind="additionalinput" paths="$(LIBS)"/>
</inputType>
</tool>
<tool id="photran.managedbuild.tool.gnu.assembler.macosx.exe.release.1337312693" name="GCC Assembler" superClass="photran.managedbuild.tool.gnu.assembler.macosx.exe.release">
<inputType id="cdt.managedbuild.tool.gnu.assembler.input.246906074" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
</tool>
</toolChain>
</folderInfo>
</configuration>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
</cconfiguration>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
<project id="test1.photran.managedbuild.target.gnu.fortran.macosx.exe.1795418068" name="Executable (Gnu Fortran on MacOS X)" projectType="photran.managedbuild.target.gnu.fortran.macosx.exe"/>
</storageModule>
<storageModule moduleId="scannerConfiguration">
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
<storageModule moduleId="refreshScope"/>
</cproject>

27
.project Normal file
View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>MyFirstFortran</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
<triggers>clean,full,incremental,</triggers>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
<triggers>full,incremental,</triggers>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.photran.core.fnature</nature>
<nature>org.eclipse.cdt.core.cnature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
</natures>
</projectDescription>

38
test1a.f95 Normal file
View File

@ -0,0 +1,38 @@
program test1a
implicit none
integer, parameter :: order = 10
integer i, pivot(order), ok
real, dimension(order,order) :: A = reshape( (/ &
196.356483, 255.783202, 254.495740, 248.699780, 382.610650, &
62.171758, 210.460418, 792.184862, 492.866147, 16.418566, &
465.590320, 419.182266, 276.934004, 92.750120, 633.946433, &
363.964274, 330.618290, 458.146049, 752.371999, 612.926015, &
232.746176, 47.023783, 46.899871, 780.529468, 40.868139, &
923.453047, 793.390477, 450.089661, 455.645932, 212.431431, &
56.827484, 66.928259, 977.022044, 688.254626, 618.276179, &
9.551896, 863.743164, 602.405740, 787.380819, 422.227709, &
374.758678, 634.315885, 432.129400, 787.574506, 573.625780, &
902.975285, 890.988258, 605.412751, 874.101587, 511.508295, &
4.822238, 522.909350, 256.688848, 122.516340, 900.301032, &
748.466705, 812.826296, 789.245172, 250.487399, 982.528843, &
378.805393, 602.230048, 364.264573, 654.350329, 622.863758, &
565.516688, 522.821921, 276.101853, 536.717666, 849.518816, &
476.899007, 895.548565, 398.298216, 45.213335, 535.759609, &
55.798948, 802.599529, 599.711219, 817.372219, 291.477778, &
486.338273, 596.013067, 442.259842, 149.362509, 592.750920, &
47.573334, 385.515622, 246.314796, 708.110189, 896.706744, &
676.303218, 896.507931, 523.151304, 582.015342, 609.873193, &
741.178150, 21.299662, 941.739146, 556.672861, 627.576228/), (/order, order/) )
real, dimension(order) :: b = (/955.191884, 900.038298, 166.121084, &
164.253073, 767.644681, 457.815496, 792.551618, 232.543770, 254.975493, 666.654631/)
call SGESV(order, 1, A, order, pivot, b, order, ok)
do i=1, order
write(*,*) b(i)
end do
end program test1a