Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
DOUAR WSMP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HUGG
DOUAR WSMP
Commits
7926e339
Commit
7926e339
authored
13 years ago
by
Dave Whipp
Browse files
Options
Downloads
Patches
Plain Diff
Moved stitch_nest to subdirectory since it is not directly called by DOUAR
parent
8c14f71a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/NEST/Makefile
+47
-0
47 additions, 0 deletions
src/NEST/Makefile
src/NEST/stitch_nest.f90
+88
-0
88 additions, 0 deletions
src/NEST/stitch_nest.f90
with
135 additions
and
0 deletions
src/NEST/Makefile
0 → 100755
+
47
−
0
View file @
7926e339
# Makefile for program post
NAME
=
stitch_nest
include
../Makefile.inc
INCLUDE
=
-I
/home/dwhipp/software/DOUARW/douar_newiso/src
BIN
=
$(
NAME
)$(
BITS
)
# object (combines velocity/temperature/cloud fields and update surface positions)
OBJECTS
=
\
../module_definitions.o
\
../module_threads.o
\
../define_cloud.o
\
../define_ov.o
\
../define_surface.o
\
../read_controlling_parameters.o
\
../read_input_file.o
\
stitch_nest.o
\
../toolbox.o
OCTREE
=
../OCTREE/libOctree
$(
BITS
)
.a
# make the program
#
all
:
$(BIN)
$(BIN)
:
$(OBJECTS)
@
echo
"
$(
F90
)
$(
FFLAGS
)
$(
INCLUDE
)
$(
OPTIONS
)
$(
OBJECTS
)
-o
$(
BIN
)
"
\
1>>
$(
BIN
)
.link.stdout 2>>
$(
BIN
)
.link.stderr
$(
F90
)
$(
FFLAGS
)
$(
INCLUDE
)
$(
OPTIONS
)
$(
OBJECTS
)
$(
OCTREE
)
-o
$(
BIN
)
\
1>>
$(
BIN
)
.link.stdout 2>>
$(
BIN
)
.link.stderr
.PHONY
:
objclean
objclean
:
rm
-f
*
.o
*
.mod
$(
COMPILE_OUT
)
.PHONY
:
distclean
distclean
:
objclean
rm
-f
$(
NAME
)
$(
BIN
)
.link.stderr
$(
BIN
)
.link.stdout
#.PHONY: more-output
#more-output:
# @echo "--"
# @echo "compiler output from `pwd`"
# @if test -e $(COMPILE_OUT) ; then ${PAGER} $(COMPILE_OUT) ; fi
# @echo "--"
# @echo "$(AR) output from `pwd`"
# @if test -e $(LIBFILE).ar ; then ${PAGER} $(LIBFILE).ar ; fi
This diff is collapsed.
Click to expand it.
src/NEST/stitch_nest.f90
0 → 100644
+
88
−
0
View file @
7926e339
! Stitch nest
!
! Combines velocity fields from a coarse model and n nests at one level finer to
! update the surface positions and temperatures in the coarse model
!
! dwhipp - 06/11
program
stitch_nest
use
definitions
use
threads
implicit
none
! Variable type declaration
character
(
len
=
4
)
::
cistep
,
cnnest
double precision
::
current_time
,
inc
,
step
,
total
integer
::
err
,
i
,
istep
,
material0
,
nnest
type
(
box
),
dimension
(:),
allocatable
::
boxes
type
(
cloud
),
dimension
(:),
allocatable
::
ss_cl
type
(
cloud
)
::
ls_cl
type
(
cross_section
),
dimension
(:),
allocatable
::
sections
type
(
face
),
dimension
(
6
)
::
cube_faces
type
(
material
),
dimension
(:),
allocatable
::
mat
type
(
nest_info
)
nest
type
(
octreev
),
dimension
(:),
allocatable
::
ss_ov
type
(
octreev
)
ls_ov
type
(
parameters
)
::
params
type
(
sheet
),
dimension
(:),
allocatable
::
ls_surf
,
ls_surf0
,
ss_surf
,
ss_surf0
type
(
thread
)
::
threadinfo
type
(
ziso
)
zi
!-------------------------------------------------------------------------------
write
(
*
,
*
)
'Program started'
! Init some variables
current_time
=
0.d0
inc
=
0.d0
step
=
0.d0
total
=
0.d0
! Read/echo current time step and # of nests from command line
call
getarg
(
1
,
cistep
)
call
getarg
(
2
,
cnnest
)
write
(
*
,
*
)
'Received command line arguments:'
write
(
*
,
*
)
'istep = '
,
trim
(
cistep
)
write
(
*
,
*
)
'nnest = '
,
trim
(
cnnest
)
! Convert character values to integers
write
(
istep
,
'(i)'
)
cistep
write
(
nnest
,
'(i)'
)
cnnest
! Read the coarse model input file
params
%
infile
=
trim
(
'input_ls.txt'
)
call
read_controlling_parameters
(
params
,
threadinfo
,
'main'
)
allocate
(
ls_surf
(
params
%
ns
),
stat
=
err
);
if
(
err
.ne.
0
)
call
stop_run
(
'Error alloc ls_surf in main$'
)
allocate
(
ls_surf0
(
params
%
ns
),
stat
=
err
);
if
(
err
.ne.
0
)
call
stop_run
(
'Error alloc ls_surf0 in main$'
)
call
read_input_file
(
params
,
threadinfo
,
material0
,
mat
,
ls_surf
,
boxes
,
sections
,
&
cube_faces
,
nest
)
! Modify params%restartfile to read previous restart file
if
(
istep
>
1
)
then
call
int_to_char
(
cistep
,
4
,
istep
-1
)
params
%
restartfile
=
'OUT/time_'
//
cistep
//
'.bin'
endif
! Read the previous coarse model restart file if istep > 1, define surface,
! cloud and ov
call
define_surface
(
params
,
ls_surf
,
threadinfo
,
total
,
step
,
inc
,
current_time
)
call
define_cloud
(
ls_cl
,
params
,
zi
)
call
define_ov
(
ls_ov
,
params
,
threadinfo
)
! Read the coarse model restart file from the current time step
! Loop through fine model(s) and read their current restart files
do
i
=
1
,
nnest
! Change params%infile
enddo
deallocate
(
ls_surf
,
ls_surf0
)
! Sign off
write
(
*
,
*
)
'Program execution complete'
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment