Skip to content

Commit 00f8a41

Browse files
authored
Add BSD-3-Clause license and standardize headers with SPDX format (#452)
1 parent 0305596 commit 00f8a41

File tree

202 files changed

+426
-5880
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+426
-5880
lines changed

.github/workflows/copyright.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
# This workflow checks that all .h/.cpp files have the copyright at the top
1+
# This workflow checks that all .h/.cpp files have the SPDX copyright header at the top
22
name: Copyright
33
on: [push, pull_request]
44
jobs:
55
check-license-lines:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@master
8+
- uses: actions/checkout@v4
9+
- name: Setup Deno
10+
uses: denoland/setup-deno@v1
11+
with:
12+
deno-version: v1.x
913
- name: Check License
10-
uses: kt3k/[email protected]
14+
run: deno run --allow-read jsr:@kt3k/[email protected]

.licenserc.json

Lines changed: 12 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,14 @@
11
{
2-
"**/*.{h,cpp}": ["Copyright (c) Stanford University, The Regents of the University of California, and others.",
3-
"All Rights Reserved.",
4-
"See Copyright-SimVascular.txt for additional details.",
5-
"Permission is hereby granted, free of charge, to any person obtaining",
6-
"a copy of this software and associated documentation files (the",
7-
"\"Software\"), to deal in the Software without restriction, including",
8-
"without limitation the rights to use, copy, modify, merge, publish,",
9-
"distribute, sublicense, and/or sell copies of the Software, and to",
10-
"permit persons to whom the Software is furnished to do so, subject",
11-
"to the following conditions:",
12-
"The above copyright notice and this permission notice shall be included",
13-
"in all copies or substantial portions of the Software.",
14-
"THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS",
15-
"IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED",
16-
"TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A",
17-
"PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER",
18-
"OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,",
19-
"EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,",
20-
"PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR",
21-
"PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF",
22-
"LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING",
23-
"NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS",
24-
"SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
25-
],
26-
"ignore": ["Distribution", "Documentation", "Externals", "Licenses", "Code/ThirdParty", "Code/Source/svFSILS/back"]
2+
"**/*.{h,hpp,c,cpp}": [
3+
"SPDX-FileCopyrightText: Copyright (c) Stanford University, The Regents of the University of California, and others.",
4+
"SPDX-License-Identifier: BSD-3-Clause"
5+
],
6+
"ignore": [
7+
"Distribution",
8+
"Documentation",
9+
"Externals",
10+
"Licenses",
11+
"Code/ThirdParty",
12+
"Code/Source/svFSILS/back"
13+
]
2714
}

Code/Source/Include/SimVascular.h

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,5 @@
1-
/* Copyright (c) Stanford University, The Regents of the University of California, and others.
2-
*
3-
* All Rights Reserved.
4-
*
5-
* See Copyright-SimVascular.txt for additional details.
6-
*
7-
* Permission is hereby granted, free of charge, to any person obtaining
8-
* a copy of this software and associated documentation files (the
9-
* "Software"), to deal in the Software without restriction, including
10-
* without limitation the rights to use, copy, modify, merge, publish,
11-
* distribute, sublicense, and/or sell copies of the Software, and to
12-
* permit persons to whom the Software is furnished to do so, subject
13-
* to the following conditions:
14-
*
15-
* The above copyright notice and this permission notice shall be included
16-
* in all copies or substantial portions of the Software.
17-
*
18-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
19-
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20-
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
21-
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
22-
* OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23-
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24-
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25-
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26-
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27-
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28-
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29-
*/
1+
// SPDX-FileCopyrightText: Copyright (c) Stanford University, The Regents of the University of California, and others.
2+
// SPDX-License-Identifier: BSD-3-Clause
303

314
#ifndef SIMVASCULAR_H
325

Code/Source/liner_solver/add_bc_mul.cpp

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,5 @@
1-
/* Copyright (c) Stanford University, The Regents of the University of California, and others.
2-
*
3-
* All Rights Reserved.
4-
*
5-
* See Copyright-SimVascular.txt for additional details.
6-
*
7-
* Permission is hereby granted, free of charge, to any person obtaining
8-
* a copy of this software and associated documentation files (the
9-
* "Software"), to deal in the Software without restriction, including
10-
* without limitation the rights to use, copy, modify, merge, publish,
11-
* distribute, sublicense, and/or sell copies of the Software, and to
12-
* permit persons to whom the Software is furnished to do so, subject
13-
* to the following conditions:
14-
*
15-
* The above copyright notice and this permission notice shall be included
16-
* in all copies or substantial portions of the Software.
17-
*
18-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
19-
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20-
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
21-
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
22-
* OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23-
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24-
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25-
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26-
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27-
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28-
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29-
*/
1+
// SPDX-FileCopyrightText: Copyright (c) Stanford University, The Regents of the University of California, and others.
2+
// SPDX-License-Identifier: BSD-3-Clause
303

314
#include "add_bc_mul.h"
325

Code/Source/liner_solver/add_bc_mul.h

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,5 @@
1-
/* Copyright (c) Stanford University, The Regents of the University of California, and others.
2-
*
3-
* All Rights Reserved.
4-
*
5-
* See Copyright-SimVascular.txt for additional details.
6-
*
7-
* Permission is hereby granted, free of charge, to any person obtaining
8-
* a copy of this software and associated documentation files (the
9-
* "Software"), to deal in the Software without restriction, including
10-
* without limitation the rights to use, copy, modify, merge, publish,
11-
* distribute, sublicense, and/or sell copies of the Software, and to
12-
* permit persons to whom the Software is furnished to do so, subject
13-
* to the following conditions:
14-
*
15-
* The above copyright notice and this permission notice shall be included
16-
* in all copies or substantial portions of the Software.
17-
*
18-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
19-
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20-
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
21-
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
22-
* OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23-
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24-
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25-
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26-
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27-
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28-
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29-
*/
1+
// SPDX-FileCopyrightText: Copyright (c) Stanford University, The Regents of the University of California, and others.
2+
// SPDX-License-Identifier: BSD-3-Clause
303

314
#include "fils_struct.hpp"
325

Code/Source/liner_solver/bc.cpp

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,5 @@
1-
/* Copyright (c) Stanford University, The Regents of the University of California, and others.
2-
*
3-
* All Rights Reserved.
4-
*
5-
* See Copyright-SimVascular.txt for additional details.
6-
*
7-
* Permission is hereby granted, free of charge, to any person obtaining
8-
* a copy of this software and associated documentation files (the
9-
* "Software"), to deal in the Software without restriction, including
10-
* without limitation the rights to use, copy, modify, merge, publish,
11-
* distribute, sublicense, and/or sell copies of the Software, and to
12-
* permit persons to whom the Software is furnished to do so, subject
13-
* to the following conditions:
14-
*
15-
* The above copyright notice and this permission notice shall be included
16-
* in all copies or substantial portions of the Software.
17-
*
18-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
19-
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20-
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
21-
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
22-
* OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23-
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24-
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25-
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26-
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27-
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28-
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29-
*/
1+
// SPDX-FileCopyrightText: Copyright (c) Stanford University, The Regents of the University of California, and others.
2+
// SPDX-License-Identifier: BSD-3-Clause
303

314
#include "fsils_api.hpp"
325
#include "fils_struct.hpp"

Code/Source/liner_solver/bcast.cpp

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,5 @@
1-
/* Copyright (c) Stanford University, The Regents of the University of California, and others.
2-
*
3-
* All Rights Reserved.
4-
*
5-
* See Copyright-SimVascular.txt for additional details.
6-
*
7-
* Permission is hereby granted, free of charge, to any person obtaining
8-
* a copy of this software and associated documentation files (the
9-
* "Software"), to deal in the Software without restriction, including
10-
* without limitation the rights to use, copy, modify, merge, publish,
11-
* distribute, sublicense, and/or sell copies of the Software, and to
12-
* permit persons to whom the Software is furnished to do so, subject
13-
* to the following conditions:
14-
*
15-
* The above copyright notice and this permission notice shall be included
16-
* in all copies or substantial portions of the Software.
17-
*
18-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
19-
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20-
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
21-
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
22-
* OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23-
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24-
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25-
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26-
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27-
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28-
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29-
*/
1+
// SPDX-FileCopyrightText: Copyright (c) Stanford University, The Regents of the University of California, and others.
2+
// SPDX-License-Identifier: BSD-3-Clause
303

314
#include "bcast.h"
325

Code/Source/liner_solver/bcast.h

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,5 @@
1-
/* Copyright (c) Stanford University, The Regents of the University of California, and others.
2-
*
3-
* All Rights Reserved.
4-
*
5-
* See Copyright-SimVascular.txt for additional details.
6-
*
7-
* Permission is hereby granted, free of charge, to any person obtaining
8-
* a copy of this software and associated documentation files (the
9-
* "Software"), to deal in the Software without restriction, including
10-
* without limitation the rights to use, copy, modify, merge, publish,
11-
* distribute, sublicense, and/or sell copies of the Software, and to
12-
* permit persons to whom the Software is furnished to do so, subject
13-
* to the following conditions:
14-
*
15-
* The above copyright notice and this permission notice shall be included
16-
* in all copies or substantial portions of the Software.
17-
*
18-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
19-
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20-
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
21-
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
22-
* OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23-
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24-
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25-
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26-
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27-
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28-
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29-
*/
1+
// SPDX-FileCopyrightText: Copyright (c) Stanford University, The Regents of the University of California, and others.
2+
// SPDX-License-Identifier: BSD-3-Clause
303

314
#include "fils_struct.hpp"
325

Code/Source/liner_solver/bicgs.cpp

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,5 @@
1-
/* Copyright (c) Stanford University, The Regents of the University of California, and others.
2-
*
3-
* All Rights Reserved.
4-
*
5-
* See Copyright-SimVascular.txt for additional details.
6-
*
7-
* Permission is hereby granted, free of charge, to any person obtaining
8-
* a copy of this software and associated documentation files (the
9-
* "Software"), to deal in the Software without restriction, including
10-
* without limitation the rights to use, copy, modify, merge, publish,
11-
* distribute, sublicense, and/or sell copies of the Software, and to
12-
* permit persons to whom the Software is furnished to do so, subject
13-
* to the following conditions:
14-
*
15-
* The above copyright notice and this permission notice shall be included
16-
* in all copies or substantial portions of the Software.
17-
*
18-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
19-
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20-
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
21-
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
22-
* OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23-
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24-
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25-
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26-
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27-
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28-
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29-
*/
1+
// SPDX-FileCopyrightText: Copyright (c) Stanford University, The Regents of the University of California, and others.
2+
// SPDX-License-Identifier: BSD-3-Clause
303

314
#include "bicgs.h"
325

Code/Source/liner_solver/bicgs.h

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,5 @@
1-
/* Copyright (c) Stanford University, The Regents of the University of California, and others.
2-
*
3-
* All Rights Reserved.
4-
*
5-
* See Copyright-SimVascular.txt for additional details.
6-
*
7-
* Permission is hereby granted, free of charge, to any person obtaining
8-
* a copy of this software and associated documentation files (the
9-
* "Software"), to deal in the Software without restriction, including
10-
* without limitation the rights to use, copy, modify, merge, publish,
11-
* distribute, sublicense, and/or sell copies of the Software, and to
12-
* permit persons to whom the Software is furnished to do so, subject
13-
* to the following conditions:
14-
*
15-
* The above copyright notice and this permission notice shall be included
16-
* in all copies or substantial portions of the Software.
17-
*
18-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
19-
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20-
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
21-
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
22-
* OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23-
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24-
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25-
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26-
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27-
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28-
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29-
*/
1+
// SPDX-FileCopyrightText: Copyright (c) Stanford University, The Regents of the University of California, and others.
2+
// SPDX-License-Identifier: BSD-3-Clause
303

314
#include "fils_struct.hpp"
325

0 commit comments

Comments
 (0)