You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please follow these instructions for running layered FD solver in Linux system or Windows system. Please direct all questions, bug reports, and issues to the primary maintainer:
3
+
*[Shuzhan Sun](mailto:sun630@purdue.edu?subject=Inquiry%20for%20gds2Para), Graduate Research Assistant, School of ECE, Purdue University
4
+
5
+
## Linux System
6
+
The macro `SKIP_LAYERED_FD` in head file `fdtd.hpp` switches between layeredFD solver and V0Vh solver. Setup for each is:
7
+
* Case 1: run V0Vh solver in Linux
8
+
```C++
9
+
#defineSKIP_LAYERED_FD
10
+
```
11
+
12
+
* Case 2: run layeredFD solver in Linux
13
+
```C++
14
+
// #define SKIP_LAYERED_FD
15
+
```
16
+
17
+
Everything else is the same as [V0Vh solver](https://github.com/purdue-onchip/gds2Para/blob/master/purdue_install.md), including commands, final parameters, and storage styles.
18
+
19
+
## Windows System
20
+
Currently, only layeredFD solver is supported in Win32 system, and above macro `SKIP_LAYERED_FD` no longer changes anything in Win32 system.
21
+
### How to Setup in Visual Studio (tested in Visual Studio 2017):
22
+
1. Create a visual studio project inside the parent directory of folder `gds2Para`, and only include these files in project:
23
+
```bash
24
+
fdtd.hpp
25
+
generateStiff.cpp
26
+
layeredFdtd.hpp
27
+
mapIndex.hpp
28
+
matrixTypeDef.hpp
29
+
mesh.cpp
30
+
pardisoSolver.hpp
31
+
sysInfoIO.hpp
32
+
```
33
+
2. Edit the `configuration` of the visual studio project to include Intel MKL. A simple way is to install [Intel Parallel Studio XE](https://software.intel.com/en-us/parallel-studio-xe/choose-download), which is free for student.
34
+
3. Write a main function to call the layeredFD solver and put it next to the VS project solution (.sln). Example main function is `layeredFD.cpp`:
35
+
```C++
36
+
#include"gds2Para/src/layeredFdtd.hpp"
37
+
intmain(void) {
38
+
layeredFdtd();
39
+
return 0;
40
+
}
41
+
```
42
+
### How to Run in Visual Studio
43
+
1. Run the layeredFD solver in Linux (could stop ealier with `Ctrl+Z`) to generate a folder `temp_sysInfoIO` inside the parent directory of folder `gds2Para`. This step exports the structure information to a few txt files. This step is necessary because many codes for loading gds files cannot be compiled in Windows system.
44
+
2. Back to Visual Studio, under mode `Debug x64`, run `Local Windows Debugger` in VS to get the parameters.
0 commit comments