GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — seapodym-codebase/src/fd_calrec_precalrec.cpp at master · PacificCommunity/seapodym-codebase

Expand file tree

/

fd_calrec_precalrec.cpp

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
executable file
·
44 lines (35 loc) · 1.44 KB
/

fd_calrec_precalrec.cpp

Copy path

File metadata and controls

executable file
·
44 lines (35 loc) · 1.44 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include "calpop.h"
///Forward main function called in simulation mode only for:
///precalrec and calrec for adults functions. See calrec_precalrec.cpp
void CCalpop::Precalrec_Calrec_adult(const PMap& map, VarMatrices& mat, VarParamCoupled& param, CReadWrite& rw, dvar_matrix& uu, dvar_matrix& mortality, const int t_count, const bool fishing, const int age, const int sp, const int year, const int month, const int jday, const int step_count, const int no_mortality)
{
bool call_calrec_catch = false;
if (param.fisheries_no_effort_exist[sp] && fishing){
call_calrec_catch = true;
mat.dvarCtot_age_est[sp][age].initialize();
}
const int nb_fishery = param.get_nbfishery();
if (fishing && (param.fisheries_no_effort_exist[sp]<nb_fishery)){
Precalrec_total_mortality_comp(map, param, mat, rw, mortality, age, sp, t_count, year, month, step_count);
}
a = value(dvarsA);
c = value(dvarsC);
d = value(dvarsD);
e = value(dvarsE);
f = value(dvarsF);
xbet = value(Xbet);
ybet = value(Ybet);
dmatrix M = value(mortality);
dvar_matrix W(0,maxn-1,0,maxn-1);
W.initialize();
bm = value(dvarsB);
precalrec_juv_comp(map, bm, M);
dvarsBM = nograd_assign(bm);
xbet_comp(map, xbet, a, bm, c, 2*iterationNumber);
Xbet = nograd_assign(xbet);
if (!call_calrec_catch)
calrec1(map,uu,M);
else {
calrec_with_catch(map,param,uu,value(mat.dvarCtot_age_obs[sp][age]),mat.dvarCtot_age_est[sp][age]);
}
}
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.