Skip to content

Commit 44ef9e0

Browse files
committed
add visual studio support.
1 parent b479797 commit 44ef9e0

File tree

5 files changed

+86
-3
lines changed

5 files changed

+86
-3
lines changed

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
build/
22
*.o
33
*.a
4-
*.x
4+
*.x
5+
6+
# `vs` files
7+
8+
Debug/*
9+
Release/*
10+
*.pdb

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ fpm build
3535
fpm run
3636
```
3737

38+
### 其它构建系统
39+
40+
除了make和fpm,本项目还支持cmake和visual studio进行构建。
41+
3842
## 链接
3943

4044
+ [spheric/SPH Codes](https://spheric-sph.org/sph-projects-and-codes)

SPH.sln

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 2012
4+
Project("{6989167D-11E4-40FE-8C1A-2192A86A7E90}") = "SPH", "SPH.vfproj", "{82DCD477-4A83-4DA1-BC7E-5F83D0DBB24A}"
5+
EndProject
6+
Global
7+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
8+
Debug|Win32 = Debug|Win32
9+
Release|Win32 = Release|Win32
10+
EndGlobalSection
11+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
12+
{82DCD477-4A83-4DA1-BC7E-5F83D0DBB24A}.Debug|Win32.ActiveCfg = Debug|Win32
13+
{82DCD477-4A83-4DA1-BC7E-5F83D0DBB24A}.Debug|Win32.Build.0 = Debug|Win32
14+
{82DCD477-4A83-4DA1-BC7E-5F83D0DBB24A}.Release|Win32.ActiveCfg = Release|Win32
15+
{82DCD477-4A83-4DA1-BC7E-5F83D0DBB24A}.Release|Win32.Build.0 = Release|Win32
16+
EndGlobalSection
17+
GlobalSection(SolutionProperties) = preSolution
18+
HideSolutionNode = FALSE
19+
EndGlobalSection
20+
EndGlobal

SPH.vfproj

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<VisualStudioProject ProjectCreator="Intel Fortran" Keyword="Console Application" Version="11.0" ProjectIdGuid="{82DCD477-4A83-4DA1-BC7E-5F83D0DBB24A}">
3+
<Platforms>
4+
<Platform Name="Win32"/></Platforms>
5+
<Configurations>
6+
<Configuration Name="Debug|Win32">
7+
<Tool Name="VFFortranCompilerTool" SuppressStartupBanner="true" DebugInformationFormat="debugEnabled" Optimization="optimizeDisabled" WarnInterfaces="true" Traceback="true" StackFrameCheck="true" RuntimeLibrary="rtMultiThreadedDebugDLL"/>
8+
<Tool Name="VFLinkerTool" LinkIncremental="linkIncrementalNo" SuppressStartupBanner="true" GenerateDebugInformation="true" SubSystem="subSystemConsole"/>
9+
<Tool Name="VFResourceCompilerTool"/>
10+
<Tool Name="VFMidlTool" SuppressStartupBanner="true"/>
11+
<Tool Name="VFCustomBuildTool"/>
12+
<Tool Name="VFPreLinkEventTool"/>
13+
<Tool Name="VFPreBuildEventTool"/>
14+
<Tool Name="VFPostBuildEventTool"/>
15+
<Tool Name="VFManifestTool" SuppressStartupBanner="true"/></Configuration>
16+
<Configuration Name="Release|Win32">
17+
<Tool Name="VFFortranCompilerTool" SuppressStartupBanner="true" RuntimeLibrary="rtMultiThreadedDLL"/>
18+
<Tool Name="VFLinkerTool" LinkIncremental="linkIncrementalNo" SuppressStartupBanner="true" SubSystem="subSystemConsole"/>
19+
<Tool Name="VFResourceCompilerTool"/>
20+
<Tool Name="VFMidlTool" SuppressStartupBanner="true"/>
21+
<Tool Name="VFCustomBuildTool"/>
22+
<Tool Name="VFPreLinkEventTool"/>
23+
<Tool Name="VFPreBuildEventTool"/>
24+
<Tool Name="VFPostBuildEventTool"/>
25+
<Tool Name="VFManifestTool" SuppressStartupBanner="true"/></Configuration></Configurations>
26+
<Files>
27+
<Filter Name="Header Files" Filter="fi;fd"/>
28+
<Filter Name="Resource Files" Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"/>
29+
<Filter Name="Source Files" Filter="f90;for;f;fpp;ftn;def;odl;idl">
30+
<File RelativePath=".\src\art_heat.f"/>
31+
<File RelativePath=".\src\art_visc.f"/>
32+
<File RelativePath=".\src\av_vel.f"/>
33+
<File RelativePath=".\src\density.f"/>
34+
<File RelativePath=".\src\direct_find.f"/>
35+
<File RelativePath=".\src\eos.f"/>
36+
<File RelativePath=".\src\external_force.f"/>
37+
<File RelativePath=".\src\grid_geom.f"/>
38+
<File RelativePath=".\src\hsml.f"/>
39+
<File RelativePath=".\src\init_grid.f"/>
40+
<File RelativePath=".\src\input.f"/>
41+
<File RelativePath=".\src\internal_force.f"/>
42+
<File RelativePath=".\src\kernel.f"/>
43+
<File RelativePath=".\src\link_list.f"/>
44+
<File RelativePath=".\src\output.f"/>
45+
<File RelativePath=".\src\param.inc"/>
46+
<File RelativePath=".\src\single_step.f"/>
47+
<File RelativePath=".\app\sph.f"/>
48+
<File RelativePath=".\src\time_elapsed.f90"/>
49+
<File RelativePath=".\src\time_integration.f"/>
50+
<File RelativePath=".\src\time_print.f90"/>
51+
<File RelativePath=".\src\virt_part.f"/>
52+
<File RelativePath=".\src\viscosity.f"/></Filter></Files>
53+
<Globals/></VisualStudioProject>

src/single_step.f

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ subroutine single_step(itimestep, dt, ntotal, hsml, mass, x, vx,
6969
call link_list(itimestep, ntotal+nvirt,hsml(1),x,niac,pair_i,
7070
& pair_j,w,dwdx,ns)
7171
else if (nnps.eq.3) then
72-
call tree_search(itimestep, ntotal+nvirt,hsml,x,niac,pair_i,
73-
& pair_j,w,dwdx,ns)
72+
c call tree_search(itimestep, ntotal+nvirt,hsml,x,niac,pair_i,
73+
c & pair_j,w,dwdx,ns)
7474
endif
7575

7676
c--- Density approximation or change rate

0 commit comments

Comments
 (0)