-
Couldn't load subscription status.
- Fork 655
FDS Compilation with Visual Studio
gforney edited this page Jun 26, 2025
·
8 revisions
These are notes for setting up a Visual Studio project on a Windows computer to build fds. This is a work in progress - not complete ie not working yet.
username is your name (gforney in my case) in the following notes
- Download and install Visual Studio
- Download and install the Base and HPC oneAPI toolkits
- Clone the fds repo
- Open Visual Studio, select
Create a New Projectbutton - Scroll down and select
Empty Project with Fortran Windows Desktop listed. Then click onNext - Name project fds in location
C:\users\username\fds_build - Click on
Place solution and project in the same directorycheckbox - Click
Create - Select
Project>Add Existing Itemmenu item and select fds source files in the fds repo at fds\Source
- Select
Project>Propertiesmenu item - Select
Fortran>Preprocessortab and set Preprocess Source File to Yes . Then selectApply - Select
Fortran>Generaltab and setAdditional Include Directoriesto the oneAPI mpi include file locations which on my computer is
C:\Program Files (x86)\Intel\oneAPI\mpi\latest\include\mpi
- Select
Linker>Generaltab and setAdditional Library Directoriesto the oneAPI mpi library location which on my computer (and probably your) is
C:\Program Files (x86)\Intel\oneAPI\mpi\latest\lib\mpi\debug
- Select
Linker>Inputtab and setAdditional Dependenciestoimpi.lib - Select
Linker>Systemtab and setSubSystemtoConsole (/SUBSYSTEM:CONSOLE)
- Select the
Build>Build fdsmenu item
- Select the
Configuration Properties>Debuggingtab - Set
Working Directoryto the directory containing your input file - Set
Command Argumentsto the name of the input file - Select
Debug>Start Debuggingmenu item. Your case should start running now.