Skip to content

Commit 7bee127

Browse files
committed
first commit
1 parent 81fb372 commit 7bee127

12 files changed

+191
-2
lines changed

CODE_OF_CONDUCT.md

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to make participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age,
8+
body size, disability, ethnicity, gender identity and expression, level of
9+
experience, nationality, personal appearance, race, religion, or sexual
10+
identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account or acting as an appointed
52+
representative at an online or offline event. Representation of a project may
53+
be further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing or otherwise unacceptable behavior may be
58+
reported by contacting one of the project maintainers at [email protected] or
59+
[email protected]. All complaints will be reviewed and investigated and will
60+
result in a response that is deemed necessary and appropriate to the
61+
circumstances. The project team is obligated to maintain confidentiality with
62+
regard to the reporter of an incident. Further details of specific enforcement
63+
policies may be posted separately.
64+
65+
Project maintainers who do not follow or enforce the Code of Conduct in good
66+
faith may face temporary or permanent repercussions as determined by other
67+
members of the project's leadership.
68+
69+
## Attribution
70+
71+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
72+
available at [https://contributor-covenant.org/version/1/4][version]
73+
74+
[homepage]: https://contributor-covenant.org
75+
[version]: https://contributor-covenant.org/version/1/4/

CONTRIBUTORS.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Fortran stdlib contributors

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 Fortran stdlib developers
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Makefile

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Fortran stdlib Makefile
2+
3+
FC = gfortran
4+
FCFLAGS=-O0
5+
6+
.PHONY: all clean
7+
8+
all: stdlib tests
9+
10+
stdlib:
11+
$(MAKE) FC=${FC} FCFLAGS=${FCFLAGS} --directory=src/lib
12+
13+
tests: stdlib
14+
$(MAKE) FC=${FC} FCFLAGS=${FCFLAGS} --directory=src/tests
15+
16+
clean:
17+
$(MAKE) clean --directory=src/lib
18+
$(MAKE) clean --directory=src/tests

README.md

+23-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,23 @@
1-
# stdlib
2-
Fortran Standard Library
1+
# Fortran Standard Library
2+
3+
## Getting started
4+
5+
```
6+
git clone https://github.com/fortran-lang/stdlib
7+
cd stdlib
8+
make
9+
```
10+
11+
## Contributing
12+
13+
* [Issues](https://github.com/fortran-lang/stdlib/issues)
14+
* [Workflow](WORKFLOW.md)
15+
* [Style guide](STYLE_GUIDE.md)
16+
* [Code of conduct](CODE_OF_CONDUCT.md)
17+
* [License](LICENSE)
18+
19+
## Links
20+
21+
* [Proposals for the Fortran Standard Committee](https://github.com/j3-fortran/fortran_proposals/)
22+
* [US Fortran Standards Committee](https://j3-fortran.org/)
23+
* [International Fortran Standard Committee](https://wg5-fortran.org/)

STYLE_GUIDE.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Fortran stdlib Style Guide
2+
3+
This document will describe the code style to use.

WORKFLOW.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Workflow for the Fortran stdlib contributors
2+
3+
This document will describe the workflow we'll follow when developing the Fortran stdlib.
4+
It's largely to be discussed and decided.
5+
For now, take a look at the [issues](https://github.com/fortran-lang/stdlib).

doc/API.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Fortran stdlib API
2+
3+
TODO

src/lib/Makefile

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Fortran stdlib Makefile
2+
3+
OBJS = mod_stdlib.o
4+
5+
.PHONY: all clean
6+
.SUFFIXES: .f90 .o
7+
8+
all: mod_stdlib.o
9+
10+
.f90.o:
11+
$(FC) $(FCFLAGS) -c $<
12+
13+
%.o: %.mod
14+
15+
mod_stdlib.o: mod_stdlib.f90
16+
17+
clean:
18+
$(RM) *.o *.mod

src/lib/mod_stdlib.f90

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module stdlib
2+
end module stdlib

src/tests/Makefile

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Fortran stdlib Makefile
2+
3+
CPPFLAGS=-I../lib
4+
OBJS = ../lib/mod_stdlib.o
5+
6+
.PHONY: all clean
7+
.SUFFIXES: .f90 .o
8+
9+
all: test_dummy
10+
11+
test_dummy: test_dummy.f90 $(OBJS)
12+
$(FC) $(FCFLAGS) $(CPPFLAGS) $< -o $@ $(OBJS)
13+
14+
%.o: %.mod
15+
16+
clean:
17+
$(RM) test_dummy
18+
$(RM) *.o *.mod

src/tests/test_dummy.f90

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
program test_dummy
2+
use stdlib
3+
print *, 'it works'
4+
end program test_dummy

0 commit comments

Comments
 (0)