Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
af2a608
Remove *.dia files from dflowfm input directories
vrielin Mar 12, 2026
c231cc6
Upgrade to netcdfAll-5.9.1.jar; no build erroros, lots of deprecated …
vrielin Mar 12, 2026
7d3e3cb
Replace deprecated method with ucar.nc2.write.Ncdump
vrielin Mar 26, 2026
95f0538
Change datatype to eliminate warnings for deprecated method get1DJava…
vrielin Mar 26, 2026
2f981a2
Replace deprecated method ucar.nc2.NetcdfFileWriter with ucar.nc2.wri…
vrielin Apr 23, 2026
03a3461
Explicit import statements for ucar.nc2.*; some warnings eliminated
vrielin Apr 23, 2026
fa8cb76
Eliminate warnings about deprecated methods (other than NetcdfFileWri…
vrielin Apr 23, 2026
fc4fe2a
Replace deprecated methods in NetcdfFileConcatenator.java and Tests
vrielin Apr 23, 2026
abd9ff7
Remove one more deprecated method
vrielin Apr 30, 2026
2d85f06
Use NetcdfDatasets.openFile() instead of NetcdfFile.open()
vrielin May 7, 2026
fe2085d
Bugfix for SwanStateNetcdfFileTest, apparenlty the only test that rea…
vrielin May 7, 2026
a0d3d85
layout changes, warnings eliminated
vrielin May 7, 2026
758f5aa
bugfix for missing import
vrielin May 7, 2026
95bcae6
Eliminate Codacy warning
vrielin May 7, 2026
50e8a2e
Remove comment line in xml file
vrielin May 7, 2026
4de5c03
Solve more Codacy issues
vrielin May 7, 2026
9654608
elininate Sonarqube warnings
vrielin May 27, 2026
8bf5c0a
Introduce new optional argument (netcdf3/netcd4) for NetcdfDataObject
vrielin May 27, 2026
6ed3cee
Revert class name to NetcdfFileConcatenater
vrielin Jun 29, 2026
12b4e70
Introduce optional argument to specify format of netcdffile (default=…
vrielin Jun 29, 2026
2683ba9
Add run.bat and updated Model and Wrapper file for D-HYDRO version 20…
vrielin Jun 29, 2026
7952f9d
Netcdf4 support improvements
erikpelgrim Jul 1, 2026
d4060f5
Netcdf4 libraries
erikpelgrim Jul 1, 2026
3ecb79b
Netcdf4 fixes
erikpelgrim Jul 27, 2026
89c52a2
Add linux and windows subdirs to resources
erikpelgrim Aug 7, 2026
869f2f5
Add linux and windows subdirs to resources
erikpelgrim Aug 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ protected void saveGain(FileBasedModelState algorithmState) {
// write gain into files in a temp dir
File kgStorage = new File(algorithmState.getDirContainingModelStateFiles(), "kgStorage_restart_tempdir");
double lastAnalysisTime = this.smoothedGainMatrix.previousAnalysisTime;
KalmanGainStorage gainStorage = new KalmanGainStorage(kgStorage, lastAnalysisTime, false); // here we should provide lastAnalysisTimeMJD
KalmanGainStorage gainStorage = new KalmanGainStorage(kgStorage, lastAnalysisTime); // here we should provide lastAnalysisTimeMJD
gainStorage.writeKalmanGain(this.smoothedGainMatrix.lastGainMatrixHashMap, this.smoothedGainMatrix.obsIds, this.smoothedGainMatrix.lastObsTimeOffsets);

FileBasedModelState gainState = new FileBasedModelState();
Expand Down
108 changes: 70 additions & 38 deletions core/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,44 +126,76 @@
</manifest>
</target>

<target name="copy-module-resources">
<!-- copy openda resources and additional binaries -->
<copy todir="${modulelibdir}" flatten="yes">
<!-- copy resources -->
<fileset dir="${resourcesdir}">
<include name="**/*.jar"/>
<include name="**/*.dll"/>
<include name="**/*.DLL"/>
<include name="**/*.so"/>
<include name="**/*.lic"/>
<include name="**/*.LIC"/>
<include name="**/*.xsd"/>
<include name="**/*.exe"/>
<include name="**/*.EXE"/>
<include name="**/*.bat"/>
<include name="**/*.BAT"/>
<include name="**/*.test"/>
<include name="**/openDA_castor_schemas.zip"/>
</fileset>
</copy>
<copy todir="${modulebindir}" flatten="yes">
<fileset dir="${external}">
<include name="**/*.sh"/>
<include name="**/*.bat"/>
<include name="**/*.exe"/>
<include name="**/*.pl"/>
<include name="**/*.dll"/>
</fileset>
</copy>
<copy todir="${modulebindir}" flatten="no">
<fileset dir="${native_bin}">
<include name="**/*"/>
<exclude name="**/*.exp"/>
</fileset>
</copy>
<chmod dir="${modulebindir}" perm="ugo+rx" includes="**/*.sh"/>
<chmod dir="${modulebindir}" perm="ugo+rx" includes="**/*.pl"/>
</target>
<target name="copy-module-resources">
<!-- copy OS-independent resources -->
<copy todir="${modulelibdir}" flatten="yes">
<fileset dir="${resourcesdir}">
<include name="**/*.jar"/>
<include name="**/*.lic"/>
<include name="**/*.LIC"/>
<include name="**/*.xsd"/>
<include name="**/*.test"/>
<include name="**/openDA_castor_schemas.zip"/>

<!-- exclude netcdf subdir from flattened copy -->
<exclude name="**/netcdf/**"/>
</fileset>
</copy>

<!-- copy Linux native libs -->
<copy todir="${modulelibdir}/linux" flatten="yes">
<fileset dir="${resourcesdir}">
<include name="**/*.so"/>
</fileset>
</copy>

<!-- copy Windows native libs/tools -->
<copy todir="${modulelibdir}/windows" flatten="yes">
<fileset dir="${resourcesdir}">
<include name="**/*.dll"/>
<include name="**/*.DLL"/>
<include name="**/*.exe"/>
<include name="**/*.EXE"/>
<include name="**/*.bat"/>
<include name="**/*.BAT"/>
</fileset>
</copy>

<!-- copy excluded netcdf subdir without flattening -->
<copy todir="${modulelibdir}" flatten="no">
<fileset dir="${resourcesdir}/netcdf">
<include name="**/*"/>
</fileset>
</copy>

<!-- external tools: Linux -->
<copy todir="${modulebindir}/linux" flatten="yes">
<fileset dir="${external}">
<include name="**/*.sh"/>
<include name="**/*.pl"/>
</fileset>
</copy>

<!-- external tools: Windows -->
<copy todir="${modulebindir}/windows" flatten="yes">
<fileset dir="${external}">
<include name="**/*.bat"/>
<include name="**/*.exe"/>
<include name="**/*.dll"/>
</fileset>
</copy>

<!-- native binaries: Linux -->
<copy todir="${modulebindir}/linux" flatten="no">
<fileset dir="${native_bin}">
<include name="**/*"/>
<exclude name="**/*.exp"/>
</fileset>
</copy>

<chmod dir="${modulebindir}/linux" perm="ugo+rx" includes="**/*.sh"/>
<chmod dir="${modulebindir}/linux" perm="ugo+rx" includes="**/*.pl"/>
</target>

<target name="validate-xml" >
<schemavalidate failonerror="false">
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added core/java/resources/netcdf/linux/libnetcdf.so.19
Binary file not shown.
Binary file removed core/java/resources/netcdf/netcdf-4.3.23.jar
Binary file not shown.
Binary file added core/java/resources/netcdf/netcdfAll-5.9.1.jar
Binary file not shown.
Binary file added core/java/resources/netcdf/windows/hdf.dll
Binary file not shown.
Binary file added core/java/resources/netcdf/windows/hdf5.dll
Binary file not shown.
Binary file added core/java/resources/netcdf/windows/hdf5_hl.dll
Binary file not shown.
Binary file added core/java/resources/netcdf/windows/libcurl.dll
Binary file not shown.
Binary file added core/java/resources/netcdf/windows/netcdf.dll
Binary file not shown.
Loading
Loading