Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New error function test PR #764

Draft
wants to merge 28 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
45afa6f
Redesign cmor_handle_error to be a variadic function
mauzey1 Jan 20, 2023
e32ffe7
Update cmor_error_handle function calls in cmor_CV.c
mauzey1 Jan 21, 2023
01e8b94
Remove unused string variables
mauzey1 Jan 21, 2023
25f4931
Merge branch 'main' into new_error_function
mauzey1 Oct 17, 2024
2a2452a
Update error messages in cmor_tables.c
mauzey1 Oct 17, 2024
18716a5
Update error message call
mauzey1 Oct 18, 2024
f037487
Add variadic versions of error handling functions
mauzey1 Oct 18, 2024
167be97
Replace error handling function calls in cmor.c with variadic version
mauzey1 Oct 22, 2024
efeaa5a
Merge branch 'main' into new_error_function
mauzey1 Oct 23, 2024
7585b3d
Add missing parameter to error message function
mauzey1 Oct 23, 2024
baaa677
Check format strings in variadic error handling functions if they are…
mauzey1 Oct 24, 2024
a41cf61
Fix comment block
mauzey1 Oct 25, 2024
edd8f94
Replace error handling function with variadic version in cmor_variabl…
mauzey1 Oct 25, 2024
3b84e07
Remove unused string variables
mauzey1 Oct 25, 2024
c232973
Concatenate with the length of the source string
mauzey1 Oct 25, 2024
fcd1e62
Use variadic error handling function in cmor_axes.c
mauzey1 Oct 28, 2024
23880b1
Use variadic error handling function in cmor_grids.c
mauzey1 Oct 28, 2024
f811fab
Remove assignments in conditions
mauzey1 Nov 1, 2024
486847a
Use strcmp for string comparisons
mauzey1 Nov 1, 2024
4c1783e
Remove comparisons of arrays with NULL
mauzey1 Nov 1, 2024
dfdb3ce
Use `labs` for absolute values of long values
mauzey1 Nov 1, 2024
8522000
Generate message for min/max values warning with dynamically-allocate…
mauzey1 Nov 1, 2024
2866461
Change function parameters from arrays to pointers
mauzey1 Nov 1, 2024
eddd53f
Change function signature in header file
mauzey1 Nov 1, 2024
949dbea
Change array parameters to pointer parameters in function signatures
mauzey1 Nov 2, 2024
d08da4f
Use dynamically-allocated string for joining grid dimension names
mauzey1 Nov 8, 2024
5390a77
Make string concatenation length be dependent on destination length
mauzey1 Nov 8, 2024
6d7db6e
Use dynamically-allocated string for joining forcing values
mauzey1 Nov 8, 2024
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
2 changes: 1 addition & 1 deletion Src/cdTime/timeArith.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ CdDivDelTime(double begEtm, double endEtm, CdDeltaTime delTime, CdTimeType timeT
range = (ehtime.month - bhtime.month);
if(range < 0) range += 12;
}
*nDel = abs(range)/delMonths;
*nDel = labs(range)/delMonths;
break;
case CdWeek: case CdDay: case CdHour: case CdMinute: case CdSecond:
delHours *= (double)delTime.count;
Expand Down
Loading