Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/matlab_octave/Compact_operators/compact.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
close all
format rat

addpath('../../src/matlab_octave')
addpath(genpath('../../src/matlab_octave'))

k = 4;
m = 2*k+1;
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/KG_product.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
clc
close all

addpath('../../src/matlab_octave')
addpath(genpath('../../src/matlab_octave'))

% Parameters
k = 2;
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/burgers1D.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
clc
close all

addpath('../../src/matlab_octave')
addpath(genpath('../../src/matlab_octave'))

west = -15; % Domain's limits
east = 15;
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/convection_diffusion3D.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
close all
format short

addpath('../../src/matlab_octave')
addpath(genpath('../../src/matlab_octave'))

% Mimetic operator's parameters
k = 2;
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/cylinder_flow_2D.m
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
% transient incompressible flow solver in a compact way.

close all; clear; clc;
addpath('../../src/matlab_octave')
addpath(genpath('../../src/matlab_octave'))

%% Settings (match C++)
Re = 200; % C++: 200
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/elliptic1D.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
clc
close all

addpath('../../src/matlab_octave')
addpath(genpath('../../src/matlab_octave'))

west = 0; % Domain's limits
east = 1;
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/elliptic1DHomogeneousDirichlet.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
%
close all; clc;

addpath('../../src/matlab_octave');
addpath(genpath('../../src/matlab_octave'));

k = 2;
bvp = 1;
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/elliptic1DLeftDirichletRightRobin.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
%
close all; clc;

addpath('../../src/matlab_octave');
addpath(genpath('../../src/matlab_octave'));

k = 2;
bvp = 7;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
%
close all; clc;

addpath('../../src/matlab_octave');
addpath(genpath('../../src/matlab_octave'));

k = 2;
bvp = 3;
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/elliptic1DLeftNeumannRightNeumann.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
%
close all; clc;

addpath('../../src/matlab_octave');
addpath(genpath('../../src/matlab_octave'));

k = 2;
bvp = 4;
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/elliptic1DLeftNeumannRightRobin.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
%
close all; clc;

addpath('../../src/matlab_octave');
addpath(genpath('../../src/matlab_octave'));

k = 2;
bvp = 8;
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/elliptic1DLeftRobinRightRobin.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
%
close all; clc;

addpath('../../src/matlab_octave');
addpath(genpath('../../src/matlab_octave'));

k = 2;
bvp = 6;
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/elliptic1DNonHomogeneousDirichlet.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
%
close all; clc;

addpath('../../src/matlab_octave');
addpath(genpath('../../src/matlab_octave'));

k = 2;
bvp = 2;
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/elliptic1DNonPeriodicBC.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
%
close all; clc;

addpath('../../src/matlab_octave');
addpath(genpath('../../src/matlab_octave'));

k = 2;
bvp = 1;
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/elliptic1DPeriodicBC.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
%
close all; clc;

addpath('../../src/matlab_octave');
addpath(genpath('../../src/matlab_octave'));

k = 2;
bvp = 5;
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/elliptic1DaddScalarBC.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
clc
close all

addpath('../../src/matlab_octave')
addpath(genpath('../../src/matlab_octave'))

west = 0; % Domain's limits
east = 1;
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/elliptic2D.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
clc
close all

addpath('../../src/matlab_octave')
addpath(genpath('../../src/matlab_octave'))

% Parameters
k = 2;
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/elliptic2DPeriodic.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
%
close all; clc;

addpath('../../src/matlab_octave');
addpath(genpath('../../src/matlab_octave'));

k = 2;
bvp = 2;
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/elliptic2DXDirichletYDirichlet.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
%
close all; clc;

addpath('../../src/matlab_octave');
addpath(genpath('../../src/matlab_octave'));

k = 2;
bvp = 1;
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/elliptic2DXPerYDirichlet.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
%
close all; clc;

addpath('../../src/matlab_octave');
addpath(genpath('../../src/matlab_octave'));

k = 2;
bvp = 5;
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/elliptic2DXPeriodicYPeriodic.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
%
close all; clc;

addpath('../../src/matlab_octave');
addpath(genpath('../../src/matlab_octave'));

k = 2;

Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/elliptic2D_case2.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
clc
close all

addpath('../../src/matlab_octave')
addpath(genpath('../../src/matlab_octave'))

% Parameters
e = 1; % Controls "rectangularity" of the grid, e = 0 -> completely rectangular
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/elliptic2D_nodal_curv.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
clc
close all

addpath('../../src/matlab_octave')
addpath(genpath('../../src/matlab_octave'))

% Parameters
k = 2;
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/elliptic2D_nodal_curv_sinusoidal.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
clc
close all

addpath('../../src/matlab_octave')
addpath(genpath('../../src/matlab_octave'))

% Parameters
e = 1; % Controls "rectangularity" of the grid, e = 0 -> completely rectangular
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/elliptic3D.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
clc
close all

addpath('../../src/matlab_octave')
addpath(genpath('../../src/matlab_octave'))

k = 2; % Order of accuracy
m = 5; % -> 7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
%
close all; clc;

addpath('../../src/matlab_octave');
addpath(genpath('../../src/matlab_octave'));

k = 2;
bvp = 1;
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/elliptic3DXDirichletYPerZNeumann.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
%
close all; clc;

addpath('../../src/matlab_octave');
addpath(genpath('../../src/matlab_octave'));

k = 2;
bvp = 2;
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/elliptic3DXDirichletYPerZPer.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
%
close all; clc;

addpath('../../src/matlab_octave');
addpath(genpath('../../src/matlab_octave'));

k = 2;
bvp = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
%
close all; clc;

addpath('../../src/matlab_octave');
addpath(genpath('../../src/matlab_octave'));

k = 2;
bvp = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
%
close all; clc;

addpath('../../src/matlab_octave');
addpath(genpath('../../src/matlab_octave'));

k = 2;
bvp = 2;
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/elliptic3DaddScalarBC3D.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
clc
close all

addpath('../../src/matlab_octave')
addpath(genpath('../../src/matlab_octave'))

k = 2; % Order of accuracy
m = 5; % -> 7
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/helmholtz2D_wifi.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
% n = refractive index
% This equation models the wifi signal propagation in a room
clear; clc; close all;
addpath('../../src/matlab_octave')
addpath(genpath('../../src/matlab_octave'))

% define the walls
wall = @(X,Y) (X>=10.0 & X<=39.0 & Y>=20.0 & Y<=21.0) | (X>=30.0 & X<=31.0 & Y>=1.0 & Y<=16.0) | ...
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/hyperbolic1D.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
clc
close all

addpath('../../src/matlab_octave')
addpath(genpath('../../src/matlab_octave'))

a = 1; % Velocity
west = 0; % Domain's limits
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/hyperbolic1D_lax_friedrichs.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
clc
close all

addpath('../../src/matlab_octave')
addpath(genpath('../../src/matlab_octave'))

a = 1; % Velocity
west = 0; % Domain's limits
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/hyperbolic1D_upwind.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
clc
close all

addpath('../../src/matlab_octave')
addpath(genpath('../../src/matlab_octave'))

a = 1; % Velocity
west = 0; % Domain's limits
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/integration1D.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

clc; close all;

addpath('../../src/matlab_octave');
addpath(genpath('../../src/matlab_octave'));

% Domain limits
west = -5;
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/lock_exchange.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
close all

%% MOLE'S path so mimetic methods can be used
addpath('../../src/matlab_octave')
addpath(genpath('../../src/matlab_octave'))

tic % Start the timer
%--------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/maxwell1D.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
% Solution to 1D Maxwell's equations using mimetic operators and leapfrog
clear; clc; close all;

addpath('../../src/matlab_octave');
addpath(genpath('../../src/matlab_octave'));

nt = 150; % number of time steps
m = 100; % number of cells
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/parabolic1D.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
clc
close all

addpath('../../src/matlab_octave')
addpath(genpath('../../src/matlab_octave'))

is_Octave = exist('OCTAVE_VERSION', 'builtin') ~= 0;

Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/parabolic2D.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
close all

% Add paths to lap2D and addScalarBC2D in the src/matlab_octave
addpath('../../src/matlab_octave')
addpath(genpath('../../src/matlab_octave'))

% Parameters
method = "implicit";
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/poisson2D.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
clc
close all

addpath('../../src/matlab_octave')
addpath(genpath('../../src/matlab_octave'))

k = 2; % Order of accuracy
m = 5; % Vertical resolution - minimal number of grid points required for the operator
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/richards.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
clc
close all

addpath('../../src/matlab_octave');
addpath(genpath('../../src/matlab_octave'));

% Spatial and temporal discretization
k = 4;
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/schrodinger2D.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
clc
close all

addpath('../../src/matlab_octave')
addpath(genpath('../../src/matlab_octave'))

% Parameters
Lxy = 1; % Length of box in x and y
Expand Down
2 changes: 1 addition & 1 deletion examples/matlab_octave/sturmLiouvilleBessel.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
%
close all; clc;

addpath('../../src/matlab_octave');
addpath(genpath('../../src/matlab_octave'));

k = 2;
bvp = 2;
Expand Down
Loading
Loading