Skip to content

Commit

Permalink
add visual studio support.
Browse files Browse the repository at this point in the history
  • Loading branch information
zoziha committed Sep 12, 2021
1 parent b479797 commit 44ef9e0
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
build/
*.o
*.a
*.x
*.x

# `vs` files

Debug/*
Release/*
*.pdb
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ fpm build
fpm run
```

### 其它构建系统

除了make和fpm,本项目还支持cmake和visual studio进行构建。

## 链接

+ [spheric/SPH Codes](https://spheric-sph.org/sph-projects-and-codes)
20 changes: 20 additions & 0 deletions SPH.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{6989167D-11E4-40FE-8C1A-2192A86A7E90}") = "SPH", "SPH.vfproj", "{82DCD477-4A83-4DA1-BC7E-5F83D0DBB24A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{82DCD477-4A83-4DA1-BC7E-5F83D0DBB24A}.Debug|Win32.ActiveCfg = Debug|Win32
{82DCD477-4A83-4DA1-BC7E-5F83D0DBB24A}.Debug|Win32.Build.0 = Debug|Win32
{82DCD477-4A83-4DA1-BC7E-5F83D0DBB24A}.Release|Win32.ActiveCfg = Release|Win32
{82DCD477-4A83-4DA1-BC7E-5F83D0DBB24A}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
53 changes: 53 additions & 0 deletions SPH.vfproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<VisualStudioProject ProjectCreator="Intel Fortran" Keyword="Console Application" Version="11.0" ProjectIdGuid="{82DCD477-4A83-4DA1-BC7E-5F83D0DBB24A}">
<Platforms>
<Platform Name="Win32"/></Platforms>
<Configurations>
<Configuration Name="Debug|Win32">
<Tool Name="VFFortranCompilerTool" SuppressStartupBanner="true" DebugInformationFormat="debugEnabled" Optimization="optimizeDisabled" WarnInterfaces="true" Traceback="true" StackFrameCheck="true" RuntimeLibrary="rtMultiThreadedDebugDLL"/>
<Tool Name="VFLinkerTool" LinkIncremental="linkIncrementalNo" SuppressStartupBanner="true" GenerateDebugInformation="true" SubSystem="subSystemConsole"/>
<Tool Name="VFResourceCompilerTool"/>
<Tool Name="VFMidlTool" SuppressStartupBanner="true"/>
<Tool Name="VFCustomBuildTool"/>
<Tool Name="VFPreLinkEventTool"/>
<Tool Name="VFPreBuildEventTool"/>
<Tool Name="VFPostBuildEventTool"/>
<Tool Name="VFManifestTool" SuppressStartupBanner="true"/></Configuration>
<Configuration Name="Release|Win32">
<Tool Name="VFFortranCompilerTool" SuppressStartupBanner="true" RuntimeLibrary="rtMultiThreadedDLL"/>
<Tool Name="VFLinkerTool" LinkIncremental="linkIncrementalNo" SuppressStartupBanner="true" SubSystem="subSystemConsole"/>
<Tool Name="VFResourceCompilerTool"/>
<Tool Name="VFMidlTool" SuppressStartupBanner="true"/>
<Tool Name="VFCustomBuildTool"/>
<Tool Name="VFPreLinkEventTool"/>
<Tool Name="VFPreBuildEventTool"/>
<Tool Name="VFPostBuildEventTool"/>
<Tool Name="VFManifestTool" SuppressStartupBanner="true"/></Configuration></Configurations>
<Files>
<Filter Name="Header Files" Filter="fi;fd"/>
<Filter Name="Resource Files" Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"/>
<Filter Name="Source Files" Filter="f90;for;f;fpp;ftn;def;odl;idl">
<File RelativePath=".\src\art_heat.f"/>
<File RelativePath=".\src\art_visc.f"/>
<File RelativePath=".\src\av_vel.f"/>
<File RelativePath=".\src\density.f"/>
<File RelativePath=".\src\direct_find.f"/>
<File RelativePath=".\src\eos.f"/>
<File RelativePath=".\src\external_force.f"/>
<File RelativePath=".\src\grid_geom.f"/>
<File RelativePath=".\src\hsml.f"/>
<File RelativePath=".\src\init_grid.f"/>
<File RelativePath=".\src\input.f"/>
<File RelativePath=".\src\internal_force.f"/>
<File RelativePath=".\src\kernel.f"/>
<File RelativePath=".\src\link_list.f"/>
<File RelativePath=".\src\output.f"/>
<File RelativePath=".\src\param.inc"/>
<File RelativePath=".\src\single_step.f"/>
<File RelativePath=".\app\sph.f"/>
<File RelativePath=".\src\time_elapsed.f90"/>
<File RelativePath=".\src\time_integration.f"/>
<File RelativePath=".\src\time_print.f90"/>
<File RelativePath=".\src\virt_part.f"/>
<File RelativePath=".\src\viscosity.f"/></Filter></Files>
<Globals/></VisualStudioProject>
4 changes: 2 additions & 2 deletions src/single_step.f
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ subroutine single_step(itimestep, dt, ntotal, hsml, mass, x, vx,
call link_list(itimestep, ntotal+nvirt,hsml(1),x,niac,pair_i,
& pair_j,w,dwdx,ns)
else if (nnps.eq.3) then
call tree_search(itimestep, ntotal+nvirt,hsml,x,niac,pair_i,
& pair_j,w,dwdx,ns)
c call tree_search(itimestep, ntotal+nvirt,hsml,x,niac,pair_i,
c & pair_j,w,dwdx,ns)
endif

c--- Density approximation or change rate
Expand Down

0 comments on commit 44ef9e0

Please sign in to comment.