From a2119790d000c844f183cbf639158c88a1b47563 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 15 Feb 2018 16:10:50 -0500 Subject: [PATCH] genpath for adding all sub-directories using addpath(genpath(maxwellfdfd_root)) adds all sub directories of maxwellfdfd, even if new ones are added. --- INSTALL.md | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 42b0767..871dd40 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -24,19 +24,8 @@ How to install MaxwellFDFD 4. In `startup.m` file opened in Step 3, copy and paste the following lines: maxwellfdfd_root = 'INSTALLATION DIRECTORY' - addpath(maxwellfdfd_root); - addpath([maxwellfdfd_root, filesep, 'base']); - addpath([maxwellfdfd_root, filesep, 'diff']); - addpath([maxwellfdfd_root, filesep, 'dielconst']); - addpath([maxwellfdfd_root, filesep, 'grid']); - addpath([maxwellfdfd_root, filesep, 'integ']); - addpath([maxwellfdfd_root, filesep, 'io']); - addpath([maxwellfdfd_root, filesep, 'material']); - addpath([maxwellfdfd_root, filesep, 'modesolver']); - addpath([maxwellfdfd_root, filesep, 'petsc']); - addpath([maxwellfdfd_root, filesep, 'shape']); - addpath([maxwellfdfd_root, filesep, 'source']); - addpath([maxwellfdfd_root, filesep, 'vis']); + addpath(genpath(maxwellfdfd_root)); + and change `INSTALLATION DIRECTORY` in the first line to the directory path you chose in Step 2. (Make sure that the directory path is enclosed by single quotes.)