EcoExtreML / STEMMUS_SCOPE

Integrated code of SCOPE and STEMMUS
https://EcoExtreML.github.io/STEMMUS_SCOPE
GNU General Public License v3.0
14 stars 6 forks source link

Mixed line ending character of unix vs windows #21

Open SarahAlidoost opened 2 years ago

SarahAlidoost commented 2 years ago

It seems that there are mixed line-ending characters in the code. We need to check if this is a problem and fix it. See this for more info. Also, make sure the code editor config is set correctly.

sverhoeven commented 2 years ago

Noticed the same by running

`dos2unix --info -- * src/*` ``` 4 0 0 no_bom text config_file_crib.txt 9 0 0 no_bom text config_file_snellius.txt dos2unix: Skipping exe, not a regular file. 0 261 0 no_bom text README.md 0 71 0 no_bom text run_stemmus_scope_snellius.sh dos2unix: Skipping slurm, not a regular file. dos2unix: Skipping src, not a regular file. dos2unix: Skipping utils, not a regular file. 34 0 0 no_bom text src/Air_BC.m 61 0 0 no_bom text src/Air_EQ.m 54 0 0 no_bom text src/Air_MAT.m 48 0 0 no_bom text src/AirPARM.m 15 0 0 no_bom text src/Air_Solve.m 0 20 0 no_bom text src/Air_sub.m 0 631 0 no_bom text src/biochemical.m 0 350 0 no_bom text src/biochemical_MD12.m 0 117 0 no_bom text src/BSM.m 0 63 0 no_bom text src/calc_brdf.m 0 15 0 no_bom text src/calc_rsoil.m 0 7 0 no_bom text src/calc_sfactor.m 117 0 0 no_bom text src/CnvrgnCHK.m 22 0 0 no_bom text src/Condg_k_g.m 360 0 0 no_bom text src/CondL_h.m 53 0 0 no_bom text src/CondL_Tdisp.m 15 0 0 no_bom text src/CondL_T.m 45 0 0 no_bom text src/CondT_coeff.m 36 0 0 no_bom text src/CondV_DE.m 32 0 0 no_bom text src/CondV_DVg.m 0 491 0 no_bom text src/Constants.m 19 0 0 no_bom text src/Density_DA.m 26 0 0 no_bom text src/Density_V.m 51 0 0 no_bom text src/Dtrmn_Z.m 0 537 0 no_bom text src/ebal.m 111 0 0 no_bom text src/EfeCapCond.m 39 0 0 no_bom text src/Enrgy_BC.m 3 0 0 no_bom text src/Enrgy_Bndry_Flux.m 66 0 0 no_bom text src/Enrgy_EQ.m 56 0 0 no_bom text src/Enrgy_MAT.m 114 0 0 no_bom text src/EnrgyPARM.m 17 0 0 no_bom text src/Enrgy_Solve.m 0 30 0 no_bom text src/Enrgy_sub.m dos2unix: Skipping src/+equations, not a regular file. 578 0 0 no_bom text src/Evap_Cal02.m 327 0 0 no_bom text src/Evap_Cal.m 135 0 0 no_bom text src/EvapTransp_Cal.m 0 35 0 no_bom text src/filenames.m 147 0 0 no_bom text src/filesread.m 0 296 0 no_bom text src/fluspect_B_CX.m 0 281 0 no_bom text src/fluspect_B_CX_PSI_PSII_combined.m 27 0 0 no_bom text src/Forcing_PARM.m 62 0 0 no_bom text src/h_BC.m 5 0 0 no_bom text src/h_Bndry_Flux.m 0 47 0 no_bom text src/heatfluxes.m dos2unix: Skipping src/+helpers, not a regular file. 67 0 0 no_bom text src/h_EQ.m 23 0 0 no_bom text src/hh_Solve.m 53 0 0 no_bom text src/h_MAT.m 93 0 0 no_bom text src/hPARM.m 50 0 0 no_bom text src/h_sub.m 31 0 0 no_bom text src/HT_frez.m 50 0 0 no_bom text src/Initial_root_biomass.m dos2unix: Skipping src/+io, not a regular file. 7 0 0 no_bom text src/Latent.m 292 0 0 no_bom text src/MainLoop.m 26 0 0 no_bom text src/Max_Rootdepth.m dos2unix: Skipping src/not_used, not a regular file. 0 25 0 no_bom text src/ObservationPoints.m dos2unix: Skipping src/+plot, not a regular file. 47 0 0 no_bom text src/PlotResults1.m 0 174 0 no_bom text src/resistances.m 57 0 0 no_bom text src/Root_properties.m 0 301 0 no_bom text src/RTMf.m 0 602 0 no_bom text src/RTMo.m 0 211 0 no_bom text src/RTMt_planck.m 0 228 0 no_bom text src/RTMt_sb.m 0 230 0 no_bom text src/RTMz.m 0 21 0 no_bom text src/setoptions.m 0 1 0 no_bom text src/set_parameter_filenames.m dos2unix: Skipping src/slprj, not a regular file. 49 0 0 no_bom text src/SOIL1.m 85 0 0 no_bom text src/SOIL2.m 218 0 0 no_bom text src/soilpropertyread.m 0 222 0 no_bom text src/soltir_tp7.m 0 569 0 no_bom text src/StartInit.m 5 0 0 no_bom text src/STEMMUS_SCOPE_exe.m 0 790 0 no_bom text src/STEMMUS_SCOPE.m 104 0 0 no_bom text src/TimestepCHK.m ```

First column is the number of lines ending with \r\n and second column ending with \n Seems there is no file with mixed line breaks.

You could configure git to standardize, see https://docs.github.com/en/get-started/getting-started-with-git/configuring-git-to-handle-line-endings