Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
odb_view
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
Operations
Operations
Incidents
Environments
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
saeed
odb_view
Commits
343bb7ce
Commit
343bb7ce
authored
Oct 04, 2019
by
saeed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a bit cleaning
parent
51a054c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
17 deletions
+1
-17
config.h
config.h
+1
-5
renderer.c
renderer.c
+0
-12
No files found.
config.h
View file @
343bb7ce
#define NX (4020)
#define NY (1680)
#define NT (1)
#define NUM_THREADS (1)
#define WIDTH_INIT (1200)
#define HEIGHT_INIT (900)
...
...
@@ -8,10 +7,7 @@
#define WIDTH_TR1 (600)
#define HEIGHT_TR1 (600)
#define INCREASE_RADIUS (1.5)
#define VMAX (1.0)
#define VMIN (0.0)
#define useminmax 0
#define usesrgb 1
#define oceancolor 0xffffffff
#define landcolor 0x91919191
#define stncolor 0x00bf0000
#define stncolor
0x00bf0000
renderer.c
View file @
343bb7ce
...
...
@@ -151,18 +151,6 @@ static int isinsymbol(int i, int j,float radius, int x, int y){
}
static
void
getminmax
(
float
*
min
,
float
*
max
,
struct
dsp_field
*
dspf
){
if
(
useminmax
){
*
min
=
VMIN
;
*
max
=
VMAX
;
}
else
{
*
min
=
minvall
(
dspf
->
SSH
,
dspf
->
nx
*
dspf
->
ny
);
*
max
=
maxvall
(
dspf
->
SSH
,
dspf
->
nx
*
dspf
->
ny
);
}
}
static
void
drawonscreen_expose
(
struct
Vis
*
vis
,
struct
dsp_field
*
dspf
,
struct
Colort
*
scolor
,
int
ncolor
,
struct
obs
*
obsp
,
struct
screen_dim
*
scdim
){
float
minv
=
0
.
0
f
,
maxv
=
0
.
0
f
;
...
...
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