Skip to content

Commit

Permalink
Fixed number of input arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
rafavzqz committed Jul 18, 2024
1 parent 808e5b3 commit c4960b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
P(Cpatch_cols,Cpatch_cols) = P(Cpatch_cols,Cpatch_cols) + ...
Cpatch.' * (tmp) * Cpatch;

if (nargin == 6)
if (nargin == 5)
x = cell (msh.rdim, 1);
for idim = 1:msh.rdim
x{idim} = reshape (msh_side.geo_map(idim,:,:), msh_side.nqn, msh_side.nel);
Expand Down
2 changes: 1 addition & 1 deletion geopdes/inst/space/@sp_scalar/op_penalty_dudn.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
coe_side = Cpen .* msh_side.charlen;
mass_pen = op_gradu_n_gradv_n (sp_side, sp_side, msh_side, coe_side);

if (nargin == 6)
if (nargin == 5)
x = cell (msh.rdim, 1);
for idim = 1:msh.rdim
x{idim} = reshape (msh_side.geo_map(idim,:,:), msh_side.nqn, msh_side.nel);
Expand Down

0 comments on commit c4960b7

Please sign in to comment.