EDmodel / ED2

Ecosystem Demography Model
78 stars 112 forks source link

Buggy xml print during ED2 execution #87

Open serbinsh opened 9 years ago

serbinsh commented 9 years ago

I am getting some buggy output to the screen during ED2 execution when using XML input files to overwrite PFT defaults

----------------------------------------
 [+] Checking for XML config...
 count xml pft : config.xml
 NPFT =            1
 MAXPFT =           11
 Opening ED2 XML Config fileconfig.xml
 EXTERN READ FROM FILE ::           0
 MISC READ FROM FILE ::           0
 ED_MISC READ FROM FILE ::           1
 Number of land use types to be read from file =     0
 NPFT =            1
 PFT's READ FROM FILE ::           1
           1          11 
y?&??x????&
           Br&??x?? ?x??    ?`?:?C&????FO?&??x??&?px???x???x???x???x???z???,&?px??%@_??z????P&?
                                                                                                   ig.xml   60.0000000    
 PFTCONST READ FROM FILE ::           0
 HYDROLOGY READ FROM FILE ::           1
 SCENARIO READ FROM FILE ::           0
 LAPSE READ FROM FILE ::           0
 CANOPY RADIATION READ FROM FILE ::           1
 SOIL READ FROM FILE ::           0
 DECOMPOSITION READ FROM FILE ::           0
 FUSEFISS READ FROM FILE ::           0
 DISTURBANCE READ FROM FILE ::           0
 PHENOLOGY READ FROM FILE ::           0
 PHYSIOLOGY READ FROM FILE ::           0
 INITCOND READ FROM FILE ::           0
 TOPMODEL enabled, setting ISOILBC to 0
 Wrote Config Record:/data/sserbin/Modeling/ED2_Modeling/NewPhyt/histo/WCr.xml

Probably just needs some tweaking to the print statements

serbinsh commented 9 years ago

It is printing the SLA values at the end of the garbily gook (SLA 60) for PFT 11

apourmok commented 9 years ago

I get the same output using my xml to add/overwrite PFTs:

[+] Checking for XML config... count xml pft : confignew.xml NPFT = 5 MAXPFT = 20 Opening ED2 XML Config fileconfignew.xml EXTERN READ FROM FILE :: 0 MISC READ FROM FILE :: 0 EDMISC READ FROM FILE :: 0 Number of land use types to be read from file = 0 NPFT = 5 PFT's READ FROM FILE :: 5 õ 24.200001 Íÿ d-i8 x".+Ø;õw+P+Íÿ(b;õw+hy;õw+´nS@ÿ1Íôw+w+6­ôw+1Íôw+8Ë*÷w+6­ôw+ÝA0;õw+@g@ø´+Íÿ õ 24.200001 Íÿ d-i9 x".+Ø;õw+P+Íÿ(b;õw+hy;õw+´nS@ÿ1Íôw+w+6­ôw+1Íôw+8Ë÷w+6­ôw+ÝA0;õw+@g@ø´+Íÿ õ 24.200001 Íÿ d-i0 x".+Ø`;õw+P+Íÿ(b;õw+hy;õw+´nS@ÿ1Íôw+w+6­ôw+1Íôw+8Ë_÷w+6­ôw+ÝA0;õw+@g@ø´+Íÿ 4 7 PITA 8.0328226 5 9 LIST 23.253941 PFTCONST READ FROM FILE :: 0 HYDROLOGY READ FROM FILE :: 0 SCENARIO READ FROM FILE :: 0 LAPSE READ FROM FILE :: 0 CANOPY RADIATION READ FROM FILE :: 0 SOIL READ FROM FILE :: 0 DECOMPOSITION READ FROM FILE :: 0 FUSEFISS READ FROM FILE :: 0 DISTURBANCE READ FROM FILE :: 0 PHENOLOGY READ FROM FILE :: 0 PHYSIOLOGY READ FROM FILE :: 0 INITCOND READ FROM FILE :: 0 TOPMODEL enabled, setting ISOILBC to 0

robkooper commented 9 years ago

C explanation, not sure if this is the same with Fortran

These tend to show a string that is not correctly terminated with a \0 character. There are a couple of cases where this could happen: