Last change
on this file since 1004 was
1004,
checked in by mhnguyen, 7 years ago
|
Some modifications of reading/writing interpolation weight from/into a file
There are 3 attributes concerning read/write weights from/into a file
- write_weight: true/false. Default value: false
- weight_filename.
- mode: Default value: compute
+ read: read from file whose name is weight_filename
+ compute: compute weights
+ read_or_compute: if weight_filename already exists, the weights will be read from it; otherwise the weights will be computed
In mode compute and read_or_compute, if there is no weight_filename, a filename whose format
xios_interpolation_weight_nameOfContext_nameOfDomainSource_nameOfDomainDestination.nc will be used for read/write.
Test
+) On Curie
+) Work
|
File size:
292 bytes
|
Line | |
---|
1 | /* GLOBAL */ |
---|
2 | DECLARE_ATTRIBUTE(StdString, file) |
---|
3 | DECLARE_ATTRIBUTE(int, order) |
---|
4 | DECLARE_ATTRIBUTE(bool, renormalize) |
---|
5 | |
---|
6 | /* Write interpolation weights into file */ |
---|
7 | DECLARE_ENUM3(mode,compute,read,read_or_compute) |
---|
8 | DECLARE_ATTRIBUTE(StdString, weight_filename) |
---|
9 | DECLARE_ATTRIBUTE(bool, write_weight) |
---|
Note: See
TracBrowser
for help on using the repository browser.