Last change
on this file since 14999 was 14999, checked in by Eric.Larour, 12 years ago |
CHG: modules should include shared.h, and that's it.
|
File size:
673 bytes
|
Line | |
---|
1 | /*!\file SmbGradientsx
|
---|
2 | * \brief: calculates SMB as function of local elevation
|
---|
3 | */
|
---|
4 |
|
---|
5 | #include "./SmbGradientsx.h"
|
---|
6 | #include "../../shared/shared.h"
|
---|
7 | #include "../../toolkits/toolkits.h"
|
---|
8 |
|
---|
9 | void SmbGradientsx(Elements* elements,Nodes* nodes, Vertices* vertices,Loads* loads,Materials* materials, Parameters* parameters){
|
---|
10 |
|
---|
11 | // void SmbGradientsx(hd,agd,ni){
|
---|
12 | // INPUT parameters: ni: working size of arrays
|
---|
13 | // INPUT: surface elevation (m): hd(NA)
|
---|
14 | // OUTPUT: mass-balance (m/yr ice): agd(NA)
|
---|
15 |
|
---|
16 | int i;
|
---|
17 |
|
---|
18 | Element* element = NULL;
|
---|
19 |
|
---|
20 | for(i=0;i<elements->Size();i++){
|
---|
21 | element=dynamic_cast<Element*>(elements->GetObjectByOffset(i));
|
---|
22 | element->SmbGradients();
|
---|
23 | }
|
---|
24 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.