Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
fvcom-toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
FVCOM
fvcom-toolbox
Commits
c20b44de
Commit
c20b44de
authored
Mar 15, 2013
by
Pierre Cazenave
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the identification of a uniform sponge layer width
parent
0e7f3570
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
fvcom_prepro/write_FVCOM_sponge.m
fvcom_prepro/write_FVCOM_sponge.m
+1
-1
No files found.
fvcom_prepro/write_FVCOM_sponge.m
View file @
c20b44de
...
@@ -50,7 +50,7 @@ else
...
@@ -50,7 +50,7 @@ else
Total_Sponge
=
sum
(
Mobj
.
nSpongeNodes
(
1
:
Mobj
.
nSponge
));
Total_Sponge
=
sum
(
Mobj
.
nSpongeNodes
(
1
:
Mobj
.
nSponge
));
fprintf
(
fid
,
'Sponge Node Number = %d\n'
,
Total_Sponge
);
fprintf
(
fid
,
'Sponge Node Number = %d\n'
,
Total_Sponge
);
for
i
=
1
:
Mobj
.
nSponge
for
i
=
1
:
Mobj
.
nSponge
if
max
(
size
(
Mobj
.
sponge_rad
))
==
1
% if you have a constant sponge radius
if
numel
(
unique
(
Mobj
.
sponge_rad
))
==
1
% if you have a constant sponge radius
for
j
=
1
:
Mobj
.
nSpongeNodes
(
i
)
for
j
=
1
:
Mobj
.
nSpongeNodes
(
i
)
fprintf
(
fid
,
'%d %f %f \n'
,
Mobj
.
sponge_nodes
(
i
,
j
),
Mobj
.
sponge_rad
(
i
),
Mobj
.
sponge_fac
(
i
));
fprintf
(
fid
,
'%d %f %f \n'
,
Mobj
.
sponge_nodes
(
i
,
j
),
Mobj
.
sponge_rad
(
i
),
Mobj
.
sponge_fac
(
i
));
end
;
end
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment